diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-02-13 21:53:43 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-02-13 21:53:43 (GMT) |
commit | 2a9f7f96b804ed929c56826c8477895c5924befe (patch) | |
tree | cf410457c68a1c1568881977a2428a445e637739 /Source/cmExtraCodeBlocksGenerator.cxx | |
parent | d26ef5c1180835d8cb32b1783b6e01806905b1e8 (diff) | |
download | CMake-2a9f7f96b804ed929c56826c8477895c5924befe.zip CMake-2a9f7f96b804ed929c56826c8477895c5924befe.tar.gz CMake-2a9f7f96b804ed929c56826c8477895c5924befe.tar.bz2 |
Also add the SOURCES from add_custom_target() to CodeBlocks projects (#11736)
Since CMake 2.6.3 add_custom_target() has a SOURCES option, this was not
yet considered in the C::B generator.
Also, now GENERATED files are not added to the project.
Alex
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-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')) |