Skip to content

Commit 407cbf3

Browse files
committed
Add an CMake option to enable and disable unit tests
1 parent 2da8bbf commit 407cbf3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMakeLists.txt

+5-2
Original file line numberDiff line numberDiff line change
@@ -72,5 +72,8 @@ export(
7272
)
7373
export(PACKAGE msgpack23)
7474

75-
enable_testing()
76-
add_subdirectory(tests)
75+
option(BUILD_TESTING "..." ON)
76+
if (BUILD_TESTING)
77+
enable_testing()
78+
add_subdirectory(tests)
79+
endif ()

0 commit comments

Comments
 (0)