Merge topic 'codeblocks-cdefs'

60a3c08 Fix regression: write compile definitions if any
This commit is contained in:
David Cole 2012-10-17 16:43:26 -04:00 committed by CMake Topic Stage
commit b61baf0c5c

View File

@ -623,7 +623,7 @@ void cmExtraCodeBlocksGenerator::AppendTarget(cmGeneratedFileStream& fout,
// the compilerdefines for this target // the compilerdefines for this target
std::string cdefs = gtgt->GetCompileDefinitions(); std::string cdefs = gtgt->GetCompileDefinitions();
if(cdefs.empty()) if(!cdefs.empty())
{ {
// Expand the list. // Expand the list.
std::vector<std::string> defs; std::vector<std::string> defs;