You've already forked linuxdeploy
mirror of
https://github.com/encounter/linuxdeploy.git
synced 2026-03-30 11:18:58 -07:00
Use CMake's BUILD_TESTING instead of proprietary custom variable
This commit is contained in:
+2
-3
@@ -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()
|
||||
|
||||
+4
-1
@@ -109,4 +109,7 @@ if(NOT USE_SYSTEM_BOOST)
|
||||
)
|
||||
endif()
|
||||
|
||||
add_subdirectory(googletest)
|
||||
include(CTest)
|
||||
if(BUILD_TESTING)
|
||||
add_subdirectory(googletest)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user