mirror of
https://github.com/audacity/linuxdeploy.git
synced 2026-02-04 03:56:11 -06:00
Use CMake's BUILD_TESTING instead of proprietary custom variable
This commit is contained in:
parent
7e4a320f61
commit
a1308955e7
@ -14,8 +14,7 @@ add_subdirectory(lib)
|
||||
|
||||
add_subdirectory(src)
|
||||
|
||||
option(BUILD_TEST "Build the tests" ON)
|
||||
if(BUILD_TEST)
|
||||
enable_testing()
|
||||
include(CTest)
|
||||
if(BUILD_TESTING)
|
||||
add_subdirectory(tests)
|
||||
endif()
|
||||
|
||||
@ -109,4 +109,7 @@ if(NOT USE_SYSTEM_BOOST)
|
||||
)
|
||||
endif()
|
||||
|
||||
add_subdirectory(googletest)
|
||||
include(CTest)
|
||||
if(BUILD_TESTING)
|
||||
add_subdirectory(googletest)
|
||||
endif()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user