fix(cmake): allow disabling tests
This commit is contained in:
parent
3fbbaddece
commit
3d0740f80e
@ -65,10 +65,9 @@ option(BUILD_TESTING "Build the testing tree." ON)
|
||||
|
||||
find_package(ECM REQUIRED NO_MODULE)
|
||||
set(CMAKE_MODULE_PATH "${ECM_MODULE_PATH};${CMAKE_MODULE_PATH}")
|
||||
include(CTest)
|
||||
include(ECMAddTests)
|
||||
if (BUILD_TESTING)
|
||||
include(CTest)
|
||||
include(ECMAddTests)
|
||||
|
||||
enable_testing()
|
||||
endif()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user