diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-11 18:56:44 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2020-03-12 11:41:35 +0100 |
commit | aa77fbca696ce4b107cd0bf866ac7676608f183b (patch) | |
tree | bc957e4a7bb7a53f4412ce716fad6470eb97a4a0 /cmake/QtSetup.cmake | |
parent | 5804473578b87f8a674eb230ee059851f6a7aaaa (diff) |
CMake: Don't build tests and examples by default on Android and iOS
Change-Id: Ia31733e2cadfb52d11426c40f3543bedc48342c4
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtSetup.cmake')
-rw-r--r-- | cmake/QtSetup.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index e8f1caf2fa..6e057e4e66 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) + if(APPLE_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) +if(APPLE_UIKIT OR ANDROID) set(QT_BUILD_EXAMPLES OFF) endif() |