diff options
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTarget.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index de92dab..1bb7a5b 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -206,7 +206,8 @@ bool cmTarget::HasCxx() const for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin(); i != m_SourceFiles.end(); ++i) { - if((*i)->GetSourceExtension() != "c") + if((*i)->GetSourceExtension() != "c" && + (*i)->GetSourceExtension() != "h") { return true; } |