diff options
author | David Cole <david.cole@kitware.com> | 2012-03-14 21:36:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-03-16 18:25:22 (GMT) |
commit | 247a132422bd3f1c97f5fcf8457d5a105ab65687 (patch) | |
tree | b251d87183a03eff680d234ef3878f9880a6c8fb /Source | |
parent | b063599603bd3d2d3cc57495d0d060ac90f0f308 (diff) | |
download | CMake-247a132422bd3f1c97f5fcf8457d5a105ab65687.zip CMake-247a132422bd3f1c97f5fcf8457d5a105ab65687.tar.gz CMake-247a132422bd3f1c97f5fcf8457d5a105ab65687.tar.bz2 |
Allow txt files as ExtraSources in object library targets
Necessary for the Xcode generator, in which the CMakeLists.txt
files are added as sources merely for convenient access, without
any associated custom command.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index 369eb5c..b5fcae2 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -74,7 +74,10 @@ void cmGeneratorTarget::ClassifySources() else { this->ExtraSources.push_back(sf); - if(isObjLib) { badObjLib.push_back(sf); } + if(isObjLib && cmSystemTools::LowerCase(sf->GetExtension()) != "txt") + { + badObjLib.push_back(sf); + } } } |