From bf899ba53b0407f5ef88bddb15115d4f8f03c345 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Fri, 6 Sep 2019 11:52:47 +0200 Subject: Propagate BUILD_TESTING and BUILD_EXAMPLES As with qmake, you configure with or without -nomake tests -nomake examples, and the choice is propagated to other repositories. Do the same for CMake. It's still possible to opt out to build one or the other by passing -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF on the command line, which takes precedence over the value saved to QtBuildInternalsExtra. Change-Id: If0fbfa938d88309e7969c9bacc8d0bf86548bf5e Reviewed-by: Simon Hausmann Reviewed-by: Qt CMake Build Bot --- CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 938a6f98cb..a45098efbf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -69,7 +69,6 @@ qt_copy_or_install(DIRECTORY "${PROJECT_SOURCE_DIR}/mkspecs" qt_build_repo_end() -option(BUILD_EXAMPLES "Build Qt examples" ON) -if (BUILD_EXAMPLES) +if(BUILD_EXAMPLES) add_subdirectory(examples) endif() -- cgit v1.2.3