diff options
author | Brad King <brad.king@kitware.com> | 2016-06-17 15:06:40 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2016-06-17 15:06:40 (GMT) |
commit | 44f81be9348d3b628e6a6255865c1d0c9c093c8b (patch) | |
tree | 1be316adf00b0537c2dd9210b7721a707088e8bb /Source/cmExtraCodeBlocksGenerator.cxx | |
parent | 9ef7ccdcf990d711d99794855e219d37d1713f59 (diff) | |
parent | afd6cc6b923af63faebe9ccbad3a8ccd950e1782 (diff) | |
download | CMake-44f81be9348d3b628e6a6255865c1d0c9c093c8b.zip CMake-44f81be9348d3b628e6a6255865c1d0c9c093c8b.tar.gz CMake-44f81be9348d3b628e6a6255865c1d0c9c093c8b.tar.bz2 |
Merge topic 'CodeBlocks-generated-sources'
afd6cc6b CodeBlocks: Show generated files in non-utility targets
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-rw-r--r-- | Source/cmExtraCodeBlocksGenerator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index 7bd0012..dee666b 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -376,8 +376,10 @@ void cmExtraCodeBlocksGenerator::CreateNewProjectFile( makefile->GetSafeDefinition("CMAKE_BUILD_TYPE")); for (std::vector<cmSourceFile*>::const_iterator si = sources.begin(); si != sources.end(); si++) { - // don't add source files which have the GENERATED property set: - if ((*si)->GetPropertyAsBool("GENERATED")) { + // don't add source files from UTILITY target which have the + // GENERATED property set: + if (gt->GetType() == cmState::UTILITY && + (*si)->GetPropertyAsBool("GENERATED")) { continue; } |