Skip to content

Commit 5d013de

Browse files
authored
Respect BUILD_TESTING (#168)
1 parent aa3f83c commit 5d013de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_PROJECT_NAME}-config.cmake"
9494
COMPONENT Development)
9595

9696
include(CTest)
97-
add_subdirectory(tests)
97+
if (BUILD_TESTING)
98+
add_subdirectory(tests)
99+
endif()
98100

99101
add_subdirectory(bin/elasticurl)

0 commit comments

Comments
 (0)