Skip to content

Commit 2caf8c1

Browse files
committed
Make tests conditional on cmake's standard BUILD_TESTING variable
1 parent 29d01c7 commit 2caf8c1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

CMakeLists.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,7 @@ endif()
3939
add_subdirectory(src/cpp subprocess)
4040

4141
# TODO testing
42-
enable_testing()
43-
add_subdirectory(test)
42+
if (BUILD_TESTING)
43+
enable_testing()
44+
add_subdirectory(test)
45+
endif(BUILD_TESTING)

0 commit comments

Comments
 (0)