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.
This commit is contained in:
David Cole authored and Brad King committed 2012-03-16 14:25:22 -04:00
1 parent b063599603
commit 247a132422
1 file changed
+4 -1
+4 -1
View File
@@ -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);
}
}
}