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>
This commit is contained in:
parent
5804473578
commit
aa77fbca69
@ -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
|
# 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.
|
# tends to fail. Disable them by default when targeting uikit.
|
||||||
if(APPLE_UIKIT)
|
if(APPLE_UIKIT OR ANDROID)
|
||||||
set(QT_BUILD_TESTING OFF)
|
set(QT_BUILD_TESTING OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ enable_testing()
|
|||||||
set(QT_BUILD_EXAMPLES ON)
|
set(QT_BUILD_EXAMPLES ON)
|
||||||
# Examples are not built by default with qmake for iOS and friends, and thus the overall build
|
# 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.
|
# tends to fail. Disable them by default when targeting uikit.
|
||||||
if(APPLE_UIKIT)
|
if(APPLE_UIKIT OR ANDROID)
|
||||||
set(QT_BUILD_EXAMPLES OFF)
|
set(QT_BUILD_EXAMPLES OFF)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user