summaryrefslogtreecommitdiffstats
path: root/Source/cmQtAutoGeneratorInitializer.cxx
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2017-08-18 09:11:21 (GMT)
committerSebastian Holtermann <sebholt@xwmw.org>2017-08-18 10:32:04 (GMT)
commit93f0ba2823b694340e6cfdb4e6befbf7fcf520bd (patch)
treeb49825db5cbc079d517cb81188fd973071ab54c1 /Source/cmQtAutoGeneratorInitializer.cxx
parent10edb0c7d52b1252517990c2e8b898a804f440d3 (diff)
downloadCMake-93f0ba2823b694340e6cfdb4e6befbf7fcf520bd.zip
CMake-93f0ba2823b694340e6cfdb4e6befbf7fcf520bd.tar.gz
CMake-93f0ba2823b694340e6cfdb4e6befbf7fcf520bd.tar.bz2
Autogen: Add AUTOMOC_MACRO_NAMES support
Closes #17176
Diffstat (limited to 'Source/cmQtAutoGeneratorInitializer.cxx')
-rw-r--r--Source/cmQtAutoGeneratorInitializer.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmQtAutoGeneratorInitializer.cxx b/Source/cmQtAutoGeneratorInitializer.cxx
index 7974977..6ae101f 100644
--- a/Source/cmQtAutoGeneratorInitializer.cxx
+++ b/Source/cmQtAutoGeneratorInitializer.cxx
@@ -380,6 +380,8 @@ static void MocSetupAutoTarget(
AddDefinitionEscaped(makefile, "_moc_relaxed_mode",
makefile->IsOn("CMAKE_AUTOMOC_RELAXED_MODE") ? "TRUE"
: "FALSE");
+ AddDefinitionEscaped(makefile, "_moc_macro_names",
+ GetSafeProperty(target, "AUTOMOC_MACRO_NAMES"));
AddDefinitionEscaped(makefile, "_moc_depend_filters",
GetSafeProperty(target, "AUTOMOC_DEPEND_FILTERS"));