fix(cmake): allow disabling tests

This commit is contained in:
Sefa Eyeoglu 2022-06-14 21:42:44 +02:00
parent 3fbbaddece
commit 3d0740f80e
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -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}")
if (BUILD_TESTING)
include(CTest)
include(ECMAddTests)
if (BUILD_TESTING)
enable_testing()
endif()