summaryrefslogtreecommitdiffstats
path: root/cmake/QtSetup.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/QtSetup.cmake')
-rw-r--r--cmake/QtSetup.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake
index 6e057e4e66..3b43f44bdd 100644
--- a/cmake/QtSetup.cmake
+++ b/cmake/QtSetup.cmake
@@ -93,7 +93,7 @@ if(FEATURE_developer_build)
# Tests are not built by default with qmake for iOS and friends, and thus the overall build
# tends to fail. Disable them by default when targeting uikit.
- if(APPLE_UIKIT OR ANDROID)
+ if(UIKIT OR ANDROID)
set(QT_BUILD_TESTING OFF)
endif()
@@ -129,7 +129,7 @@ enable_testing()
set(QT_BUILD_EXAMPLES ON)
# Examples are not built by default with qmake for iOS and friends, and thus the overall build
# tends to fail. Disable them by default when targeting uikit.
-if(APPLE_UIKIT OR ANDROID)
+if(UIKIT OR ANDROID)
set(QT_BUILD_EXAMPLES OFF)
endif()