summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-03-14 21:36:31 (GMT)
committerBrad King <brad.king@kitware.com>2012-03-16 18:25:22 (GMT)
commit247a132422bd3f1c97f5fcf8457d5a105ab65687 (patch)
treeb251d87183a03eff680d234ef3878f9880a6c8fb /Source
parentb063599603bd3d2d3cc57495d0d060ac90f0f308 (diff)
downloadCMake-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.cxx5
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);
+ }
}
}