Merge topic 'CodeBlocks-generated-sources'

afd6cc6b CodeBlocks: Show generated files in non-utility targets
This commit is contained in:
Brad King 2016-06-17 11:06:40 -04:00 committed by CMake Topic Stage
commit 44f81be934
1 changed files with 4 additions and 2 deletions

View File

@ -376,8 +376,10 @@ void cmExtraCodeBlocksGenerator::CreateNewProjectFile(
makefile->GetSafeDefinition("CMAKE_BUILD_TYPE")); makefile->GetSafeDefinition("CMAKE_BUILD_TYPE"));
for (std::vector<cmSourceFile*>::const_iterator si = sources.begin(); for (std::vector<cmSourceFile*>::const_iterator si = sources.begin();
si != sources.end(); si++) { si != sources.end(); si++) {
// don't add source files which have the GENERATED property set: // don't add source files from UTILITY target which have the
if ((*si)->GetPropertyAsBool("GENERATED")) { // GENERATED property set:
if (gt->GetType() == cmState::UTILITY &&
(*si)->GetPropertyAsBool("GENERATED")) {
continue; continue;
} }