diff options
author | Nils Gladitz <nilsgladitz@gmail.com> | 2013-10-26 21:38:38 (GMT) |
---|---|---|
committer | Nils Gladitz <nilsgladitz@gmail.com> | 2013-10-28 13:25:28 (GMT) |
commit | f037b9b72644f150c136540b990774a3b32d39cf (patch) | |
tree | 20b79a362a8921dbb27b57f89ad01d8a75989cf0 /Source/cmGeneratorTarget.cxx | |
parent | 38fc334fd0619bf7b440003a1598f5467ed9a728 (diff) | |
download | CMake-f037b9b72644f150c136540b990774a3b32d39cf.zip CMake-f037b9b72644f150c136540b990774a3b32d39cf.tar.gz CMake-f037b9b72644f150c136540b990774a3b32d39cf.tar.bz2 |
Generators: don't append sources from utility targets to objectSources
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 62ac263..511ae8a 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -114,7 +114,10 @@ std::vector<cmSourceFile*> const& cmGeneratorTarget::GetSourceFiles() void cmGeneratorTarget::ClassifySources() { cmsys::RegularExpression header(CM_HEADER_REGEX); - bool isObjLib = this->Target->GetType() == cmTarget::OBJECT_LIBRARY; + + cmTarget::TargetType targetType = this->Target->GetType(); + bool isObjLib = targetType == cmTarget::OBJECT_LIBRARY; + std::vector<cmSourceFile*> badObjLib; std::vector<cmSourceFile*> const& sources = this->Target->GetSourceFiles(); for(std::vector<cmSourceFile*>::const_iterator si = sources.begin(); @@ -126,6 +129,10 @@ void cmGeneratorTarget::ClassifySources() { this->CustomCommands.push_back(sf); } + else if(targetType == cmTarget::UTILITY) + { + this->ExtraSources.push_back(sf); + } else if(sf->GetPropertyAsBool("HEADER_FILE_ONLY")) { this->HeaderSources.push_back(sf); |