Always build tests by default when building standalone tests
Amends 021c17c62f
Change-Id: I8181270ef7506eb5da4d3b43e105e100ed5581e4
Reviewed-by: Leander Beernaert <leander.beernaert@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
bb10
parent
e7f188b2d2
commit
250ad9843f
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue