File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,11 @@ if(POLICY CMP0077)
9
9
endif ()
10
10
11
11
include (FetchContent )
12
- set (_itk_build_testing ${BUILD_TESTING} )
12
+ if (DEFINED BUILD_TESTING )
13
+ set (_itk_build_testing ${BUILD_TESTING} )
14
+ else ()
15
+ set (_itk_build_testing OFF ) # Default
16
+ endif ()
13
17
if (WASI OR EMSCRIPTEN )
14
18
# Cleaver lib vendored GTest incompatibility
15
19
set (BUILD_TESTING OFF CACHE BOOL "Build testing code" FORCE )
@@ -38,7 +42,7 @@ if(NOT cleaver_lib_POPULATED)
38
42
endif ()
39
43
# Debugging / development, symlink Cleaver2 into the source tree
40
44
#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/Cleaver2/src)
41
- set (BUILD_TESTING ${_itk_build_testing} )
45
+ set (BUILD_TESTING ${_itk_build_testing} CACHE BOOL "Build testing code" FORCE )
42
46
set (BUILD_SHARED_LIBS ${_itk_build_shared} )
43
47
44
48
set (Cleaver_LIBRARIES cleaver jsoncpp )
You can’t perform that action at this time.
0 commit comments