summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorAlexey Edelev <alexey.edelev@qt.io>2023-02-20 08:58:55 +0000
committerAlexey Edelev <alexey.edelev@qt.io>2023-02-21 21:41:41 +0000
commit0a27f4030e61590e74cfea27519823010b2c1cbe (patch)
treea2e49f16724f6e95ba05c5958e7e48c0cb449682 /cmake
parentd1d80d7be5a6c08cbbb1c86af2ad22d22ba95864 (diff)
Revert "Avoid mapping BUILD_TESTING to QT_BUILD_TESTS"
This reverts commit e3ecabad228369bfc6dc82085446d7acc05ef45a. Reason for revert: This breaks the CTest internal switches. So it's better to disable testing directly in submodule. Change-Id: Ia93dc3bb0a3a34021c8e2d6c3d292e3a4909bef5 Reviewed-by: Amir Masoud Abdol <amir.abdol@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtSetup.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtSetup.cmake b/cmake/QtSetup.cmake
index b4535f9207..019a579a4a 100644
--- a/cmake/QtSetup.cmake
+++ b/cmake/QtSetup.cmake
@@ -233,6 +233,7 @@ if(QT_BUILD_STANDALONE_TESTS)
set(QT_BUILD_TESTS_BY_DEFAULT ON CACHE BOOL
"Should tests be built as part of the default 'all' target." FORCE)
endif()
+set(BUILD_TESTING ${QT_BUILD_TESTS} CACHE INTERNAL "")
if (WASM)
set(_qt_batch_tests ON)