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 2012-03-14 17:36:31 -04:00 committed by Brad King
parent b063599603
commit 247a132422
1 changed files with 4 additions and 1 deletions

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);
}
}
}