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
|
// 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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user