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:
Bill Hoffman 2004-04-22 14:38:17 -04:00
parent 161c31bc2b
commit 86bf9f396e
1 changed files with 4 additions and 0 deletions

View File

@ -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)
{