mirror of
https://github.com/Kitware/CMake.git
synced 2026-03-17 09:11:36 -05:00
Process COMPILE_DEFINITIONS as generator expressions in QtAutomoc.
Fixes #13493.
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user