diff options
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 603e04f..cd0a96a 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -75,3 +75,15 @@ void cmTarget::MergeLibraries(const LinkLibraries &ll) } +bool cmTarget::HasCxx() const +{ + for(std::vector<cmSourceFile*>::const_iterator i = m_SourceFiles.begin(); + i != m_SourceFiles.end(); ++i) + { + if((*i)->GetSourceExtension() != "c") + { + return true; + } + } + return false; +} |