summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-10-17 20:43:26 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-10-17 20:43:26 (GMT)
commitb61baf0c5c1e4886f0f799588584cdd2d7ad8ce0 (patch)
treeaaf3b7bcefc6c8a675af5be73bea21a5b58c802f
parentfae62381f1f16f4119700fa7a8d6d44f1236ea90 (diff)
parent60a3c08e968f02877952992782b5745ce2d88119 (diff)
downloadCMake-b61baf0c5c1e4886f0f799588584cdd2d7ad8ce0.zip
CMake-b61baf0c5c1e4886f0f799588584cdd2d7ad8ce0.tar.gz
CMake-b61baf0c5c1e4886f0f799588584cdd2d7ad8ce0.tar.bz2
Merge topic 'codeblocks-cdefs'
60a3c08 Fix regression: write compile definitions if any
-rw-r--r--Source/cmExtraCodeBlocksGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx
index 8b2daba..00e1abc 100644
--- a/Source/cmExtraCodeBlocksGenerator.cxx
+++ b/Source/cmExtraCodeBlocksGenerator.cxx
@@ -623,7 +623,7 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
// the compilerdefines for this target
std::string cdefs = gtgt->GetCompileDefinitions();
- if(cdefs.empty())
+ if(!cdefs.empty())
{
// Expand the list.
std::vector<std::string> defs;