Merge topic 'codeblocks-cdefs'
60a3c08
Fix regression: write compile definitions if any
This commit is contained in:
commit
b61baf0c5c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue