Process COMPILE_DEFINITIONS as generator expressions in QtAutomoc.

Fixes #13493.
This commit is contained in:
Stephen Kelly authored and Brad King committed 2013-01-29 14:11:49 -05:00
1 parent 0e10782ba7
commit 429e369974
1 file changed
+5 -1
+5 -1
View File
@@ -229,7 +229,11 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target)
}
const char* tmp = target->GetProperty("COMPILE_DEFINITIONS");
std::string _moc_compile_defs = (tmp!=0 ? tmp : "");
std::string _moc_compile_defs;
if (tmp)
{
_moc_compile_defs = target->GetCompileDefinitions();
}
tmp = makefile->GetProperty("COMPILE_DEFINITIONS");
if (tmp)
{