Fix regression: write compile definitions if any

In 0ff4e3f0b8 cdefs
was changed from a pointer to a vector.
This commit is contained in:
Peter Kümmel 2012-10-11 20:54:40 +02:00
parent 2876cb39d7
commit 60a3c08e96
1 changed files with 1 additions and 1 deletions

View File

@ -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;