From 60a3c08e968f02877952992782b5745ce2d88119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20K=C3=BCmmel?= Date: Thu, 11 Oct 2012 20:54:40 +0200 Subject: [PATCH] Fix regression: write compile definitions if any In 0ff4e3f0b88885eafab0693fdf03b44c7a5f9d0c cdefs was changed from a pointer to a vector. --- Source/cmExtraCodeBlocksGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmExtraCodeBlocksGenerator.cxx b/Source/cmExtraCodeBlocksGenerator.cxx index 8b2dabacf..00e1abcca 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 defs;