From 250ad9843ff14a42bdcc8937ac0bea12317fe622 Mon Sep 17 00:00:00 2001 From: Alexandru Croitor Date: Wed, 13 Nov 2019 10:20:09 +0100 Subject: Always build tests by default when building standalone tests Amends 021c17c62f963a682c6a4b19f0c3d362c28a97ee Change-Id: I8181270ef7506eb5da4d3b43e105e100ed5581e4 Reviewed-by: Leander Beernaert Reviewed-by: Alexandru Croitor --- cmake/QtSetup.cmake | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cmake') diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake index f53388a27f..feb7c6b736 100644 --- a/cmake/QtSetup.cmake +++ b/cmake/QtSetup.cmake @@ -93,6 +93,10 @@ if(QT_BUILD_STANDALONE_TESTS) # BuildInternals might have set it to OFF on initial configuration. So force it to ON when # building standalone tests. set(BUILD_TESTING ON CACHE BOOL "Build the testing tree." FORCE) + + # Also force the tests to be built as part of the default build target. + set(QT_NO_MAKE_TESTS OFF CACHE BOOL + "Should examples be built as part of the default 'all' target." FORCE) endif() option(QT_NO_MAKE_TESTS "Should tests be built as part of the default 'all' target." OFF) -- cgit v1.2.3