Skip to content

Commit 03b455d

Browse files
Add BUILD_TESTING check before building tests
1 parent 3a00bc3 commit 03b455d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ endif()
237237

238238
######################################################
239239

240-
if (BTCPP_UNIT_TESTS)
240+
if (BTCPP_UNIT_TESTS AND BUILD_TESTING)
241241
add_subdirectory(tests)
242242
endif()
243243

0 commit comments

Comments
 (0)