Process COMPILE_DEFINITIONS as generator expressions in QtAutomoc.

Fixes #13493.
This commit is contained in:
Stephen Kelly 2013-01-25 14:03:17 +01:00 committed by Brad King
parent 0e10782ba7
commit 429e369974
1 changed files with 5 additions and 1 deletions

View File

@ -229,7 +229,11 @@ void cmQtAutomoc::SetupAutomocTarget(cmTarget* target)
} }
const char* tmp = target->GetProperty("COMPILE_DEFINITIONS"); 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"); tmp = makefile->GetProperty("COMPILE_DEFINITIONS");
if (tmp) if (tmp)
{ {