QtAutomoc: Fix handling of list separator for compile definitions.

This commit is contained in:
Stephen Kelly 2013-06-11 15:36:44 +02:00
parent 9f460fe408
commit 67f6cebb1e
1 changed files with 3 additions and 1 deletions

View File

@ -283,9 +283,11 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target)
std::string _moc_compile_defs = target->GetCompileDefinitions(0); std::string _moc_compile_defs = target->GetCompileDefinitions(0);
const char* tmp = makefile->GetProperty("COMPILE_DEFINITIONS"); const char* tmp = makefile->GetProperty("COMPILE_DEFINITIONS");
sep = "";
if (tmp) if (tmp)
{ {
_moc_compile_defs += ";"; _moc_compile_defs += sep;
sep = ";";
_moc_compile_defs += tmp; _moc_compile_defs += tmp;
} }
tmp = target->GetProperty("AUTOMOC_MOC_OPTIONS"); tmp = target->GetProperty("AUTOMOC_MOC_OPTIONS");