File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
99option (BTCPP_SHARED_LIBS "Build shared libraries" ON )
1010option (BTCPP_BUILD_TOOLS "Build commandline tools" ON )
1111option (BTCPP_EXAMPLES "Build tutorials and examples" ON )
12- option (BTCPP_UNIT_TESTS "Build the unit tests" ON )
12+ option (BUILD_TESTING "Build the unit tests" ON )
1313option (BTCPP_GROOT_INTERFACE "Add Groot2 connection. Requires ZeroMQ" ON )
1414option (BTCPP_SQLITE_LOGGING "Add SQLite logging." ON )
1515
@@ -220,15 +220,16 @@ endif()
220220#############################################################
221221message ( STATUS "BTCPP_LIB_DESTINATION: ${BTCPP_LIB_DESTINATION} " )
222222message ( STATUS "BTCPP_INCLUDE_DESTINATION: ${BTCPP_INCLUDE_DESTINATION} " )
223- message ( STATUS "BTCPP_UNIT_TESTS: ${BTCPP_UNIT_TESTS} " )
224223
225- if (BTCPP_UNIT_TESTS OR BTCPP_EXAMPLES)
224+ if (BUILD_TESTING OR BTCPP_EXAMPLES)
226225 add_subdirectory (sample_nodes)
227226endif ()
228227
229228######################################################
230229
231- if (BTCPP_UNIT_TESTS)
230+ include (CTest)
231+ message ( STATUS "BUILD_TESTING: ${BUILD_TESTING} " )
232+ if (BUILD_TESTING)
232233 add_subdirectory (tests)
233234endif ()
234235
You can’t perform that action at this time.
0 commit comments