mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-08 23:44:00 +03:00
Process COMPILE_DEFINITIONS as generator expressions in QtAutomoc.
Fixes #13493.
This commit is contained in:
1 parent
0e10782ba7
commit
429e369974
1 file changed
+5
-1
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user