diff options
author | Leander Beernaert <leander.beernaert@qt.io> | 2019-09-03 12:33:11 +0200 |
---|---|---|
committer | Leander Beernaert <leander.beernaert@qt.io> | 2019-09-03 12:02:20 +0000 |
commit | 3f8ba1e55e20cec0110e25cfad662ae3982a54e7 (patch) | |
tree | 982325e2714cf4ce21924550cc3ec114262f5dca /cmake/QtBuildInternals | |
parent | e0fbb7306d908fd5b3c6c34e7c041a067d8d5b9c (diff) |
Disable Examples in static build
Do not build examples in static builds as they are not prepared
for this configuration.
Change-Id: Ia0fd0a6cdfa3733bf13eb2ca8398668f26c0bedf
Reviewed-by: Qt CMake Build Bot
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake/QtBuildInternals')
-rw-r--r-- | cmake/QtBuildInternals/QtBuildInternalsConfig.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake b/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake index 5e83b760c0..1ebd321753 100644 --- a/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake +++ b/cmake/QtBuildInternals/QtBuildInternalsConfig.cmake @@ -93,7 +93,7 @@ macro(qt_build_repo) qt_build_repo_end() - if (BUILD_EXAMPLES AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/examples/CMakeLists.txt") + if (BUILD_EXAMPLES AND BUILD_SHARED_LIBS AND EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/examples/CMakeLists.txt") add_subdirectory(examples) endif() endmacro() |