summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraCodeBlocksGenerator.cxx
diff options
context:
space:
mode:
authorPeter Kümmel <syntheticpp@gmx.net>2012-10-11 18:54:40 (GMT)
committerPeter Kümmel <syntheticpp@gmx.net>2012-10-11 18:58:39 (GMT)
commit60a3c08e968f02877952992782b5745ce2d88119 (patch)
tree8fa28c841d63bf8d66155938247d2d0e8a91b16e /Source/cmExtraCodeBlocksGenerator.cxx
parent2876cb39d7c8d671aaf05f2ab418991e328beba7 (diff)
downloadCMake-60a3c08e968f02877952992782b5745ce2d88119.zip
CMake-60a3c08e968f02877952992782b5745ce2d88119.tar.gz
CMake-60a3c08e968f02877952992782b5745ce2d88119.tar.bz2
Fix regression: write compile definitions if any
In 0ff4e3f0b88885eafab0693fdf03b44c7a5f9d0c cdefs was changed from a pointer to a vector.
Diffstat (limited to 'Source/cmExtraCodeBlocksGenerator.cxx')
-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;