summaryrefslogtreecommitdiffstats
path: root/Modules/AutogenInfo.cmake.in
diff options
context:
space:
mode:
authorAleix Pol <aleixpol@kde.org>2017-04-06 02:14:35 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-20 12:59:07 (GMT)
commit0903531964cff8888dd1cbf2a9c82ac6bb9a522f (patch)
tree2cf7d844d3ee291ecb5ba77547bddb0a490aa150 /Modules/AutogenInfo.cmake.in
parent135611176c5d4958b9b5a36c63fada8a9e4fb1ef (diff)
downloadCMake-0903531964cff8888dd1cbf2a9c82ac6bb9a522f.zip
CMake-0903531964cff8888dd1cbf2a9c82ac6bb9a522f.tar.gz
CMake-0903531964cff8888dd1cbf2a9c82ac6bb9a522f.tar.bz2
Autogen: Pass explicit predefines header to moc if possible
Qt is relying on whoever calls moc to include a file with the predefined values that will be used by the compiler, otherwise moc takes wrong paths and weird things happen. Instead, generate an include file and feed it to all mocs to make sure it's generating correct code. Co-Author: Sebastian Holtermann <sebholt@xwmw.org> Fixes: #16640
Diffstat (limited to 'Modules/AutogenInfo.cmake.in')
-rw-r--r--Modules/AutogenInfo.cmake.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/AutogenInfo.cmake.in b/Modules/AutogenInfo.cmake.in
index fcecb6c..5e945bc 100644
--- a/Modules/AutogenInfo.cmake.in
+++ b/Modules/AutogenInfo.cmake.in
@@ -21,6 +21,7 @@ set(AM_MOC_INCLUDES @_moc_incs@)
set(AM_MOC_OPTIONS @_moc_options@)
set(AM_MOC_RELAXED_MODE @_moc_relaxed_mode@)
set(AM_MOC_DEPEND_FILTERS @_moc_depend_filters@)
+set(AM_MOC_PREDEFS_CMD @_moc_predefs_cmd@)
# UIC settings
set(AM_UIC_SKIP @_uic_skip@)
set(AM_UIC_TARGET_OPTIONS @_uic_target_options@)