Fix regression: write compile definitions if any
In 0ff4e3f0b8
cdefs
was changed from a pointer to a vector.
This commit is contained in:
parent
2876cb39d7
commit
60a3c08e96
|
@ -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…
Reference in New Issue