summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMikhail Svetkin <mikhail.svetkin@qt.io>2019-03-06 13:51:38 +0100
committerMikhail Svetkin <mikhail.svetkin@qt.io>2019-03-06 13:17:48 +0000
commit25ee3d1c3b05a4e87201effa5b270078778e98ad (patch)
tree36e22d9639f5a78136f87eff0a1b333df3dc4828 /src
parentd72b717119de3d9bad859c1e059c35f34697a3ac (diff)
cmake: Fix moc on macOS
moc does not generate moc_defs.h and that's why moc does not understand that he runs on macOS. It happens because cmake can not find Qt version. Change-Id: I34c51ebb69dc1ff782a0f129e114cda819122805 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/CMakeLists.txt5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/corelib/CMakeLists.txt b/src/corelib/CMakeLists.txt
index 4fe51d031c..ed0ec76961 100644
--- a/src/corelib/CMakeLists.txt
+++ b/src/corelib/CMakeLists.txt
@@ -238,10 +238,13 @@ add_qt_module(Core
tinycbor Threads::Threads ZLIB::ZLIB
QtHarfBuzz
Qt::GlobalConfigPrivate
- PUBLIC_LIBRARIES Qt::Platform
+ PUBLIC_LIBRARIES
+ Qt::Platform
DEFINES
QT_NO_USING_NAMESPACE
QT_NO_FOREACH
+ DISABLE_AUTOGEN_TOOLS
+ uic
)
add_dependencies(Core Qt::moc)