From 67f6cebb1ea3557c3e3144023ba3fea2f5f97ceb Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Tue, 11 Jun 2013 15:36:44 +0200 Subject: QtAutomoc: Fix handling of list separator for compile definitions. --- Source/cmQtAutomoc.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Source/cmQtAutomoc.cxx b/Source/cmQtAutomoc.cxx index 350b462..969e3db 100644 --- a/Source/cmQtAutomoc.cxx +++ b/Source/cmQtAutomoc.cxx @@ -283,9 +283,11 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target) std::string _moc_compile_defs = target->GetCompileDefinitions(0); const char* tmp = makefile->GetProperty("COMPILE_DEFINITIONS"); + sep = ""; if (tmp) { - _moc_compile_defs += ";"; + _moc_compile_defs += sep; + sep = ";"; _moc_compile_defs += tmp; } tmp = target->GetProperty("AUTOMOC_MOC_OPTIONS"); -- cgit v0.12