Skip to content

Commit

Permalink
Revert "Avoid mapping BUILD_TESTING to QT_BUILD_TESTS"
Browse files Browse the repository at this point in the history
This reverts commit e3ecaba.

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 <[email protected]>
Reviewed-by: Joerg Bornemann <[email protected]>
  • Loading branch information
semlanik committed Feb 21, 2023
1 parent d1d80d7 commit 0a27f40
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmake/QtSetup.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a27f40

Please sign in to comment.