diff options
author | Brad King <brad.king@kitware.com> | 2011-02-22 19:32:31 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2011-02-22 19:32:31 (GMT) |
commit | 67c542a3cca8eed7e3c5994e1678f1d51365bc37 (patch) | |
tree | b6ec83f00c2baef44d0b716a1dc25b202caafa21 /Source | |
parent | 7dcf2269ecd88e9d7c97ce8536db7c8ef32b61a4 (diff) | |
parent | 2a9f7f96b804ed929c56826c8477895c5924befe (diff) | |
download | CMake-67c542a3cca8eed7e3c5994e1678f1d51365bc37.zip CMake-67c542a3cca8eed7e3c5994e1678f1d51365bc37.tar.gz CMake-67c542a3cca8eed7e3c5994e1678f1d51365bc37.tar.bz2 |
Merge topic 'AddCustomTargetSourcesToCodeBlocksProject'
2a9f7f9 Also add the SOURCES from add_custom_target() to CodeBlocks projects (#11736)
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmExtraCodeBlocksGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index a5650d4..4f93067 100644 --- a/Source/cmExtraCodeBlocksGenerator.cxx +++ b/Source/cmExtraCodeBlocksGenerator.cxx @@ -416,11 +416,18 @@ void cmExtraCodeBlocksGenerator case cmTarget::STATIC_LIBRARY: case cmTarget::SHARED_LIBRARY: case cmTarget::MODULE_LIBRARY: + case cmTarget::UTILITY: // can have sources since 2.6.3 { const std::vector<cmSourceFile*>&sources=ti->second.GetSourceFiles(); 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")) + { + continue; + } + // check whether it is a C/C++ implementation file bool isCFile = false; if ((*si)->GetLanguage() && (*(*si)->GetLanguage() == 'C')) |