ENH: add a property for HAS_CXX to a target that will force the use of a c++ compiler in the linking of an executable that contains only c code
This commit is contained in:
parent
161c31bc2b
commit
86bf9f396e
|
@ -421,6 +421,10 @@ void cmTarget::AddLinkLibrary(cmMakefile& mf,
|
|||
|
||||
bool cmTarget::HasCxx() const
|
||||
{
|
||||
if(this->GetProperty("HAS_CXX"))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin();
|
||||
i != m_SourceFiles.end(); ++i)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue