diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-03-12 11:29:58 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-03-31 21:18:43 (GMT) |
commit | 99a9c51f1a65b58f366506929b3b82297809c1ca (patch) | |
tree | 28d0c3b6aa660ca0d5582649d2ab135c2f6fd009 /Source | |
parent | beaa7e037761c734d7587b847d8af1ce3dce37d9 (diff) | |
download | CMake-99a9c51f1a65b58f366506929b3b82297809c1ca.zip CMake-99a9c51f1a65b58f366506929b3b82297809c1ca.tar.gz CMake-99a9c51f1a65b58f366506929b3b82297809c1ca.tar.bz2 |
cmTarget: Use GetSourceFiles for languages.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmTarget.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 17c8a4d..a7c4488 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -4844,8 +4844,10 @@ bool cmTarget::IsLinkInterfaceDependentNumberMaxProperty(const std::string &p, //---------------------------------------------------------------------------- void cmTarget::GetLanguages(std::set<std::string>& languages) const { + std::vector<cmSourceFile*> sourceFiles; + this->GetSourceFiles(sourceFiles); for(std::vector<cmSourceFile*>::const_iterator - i = this->SourceFiles.begin(); i != this->SourceFiles.end(); ++i) + i = sourceFiles.begin(); i != sourceFiles.end(); ++i) { const std::string& lang = (*i)->GetLanguage(); if(!lang.empty()) |