summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2011-02-22 19:32:31 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2011-02-22 19:32:31 (GMT)
commit67c542a3cca8eed7e3c5994e1678f1d51365bc37 (patch)
treeb6ec83f00c2baef44d0b716a1dc25b202caafa21 /Source
parent7dcf2269ecd88e9d7c97ce8536db7c8ef32b61a4 (diff)
parent2a9f7f96b804ed929c56826c8477895c5924befe (diff)
downloadCMake-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.cxx7
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'))