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)
9
9
option (BTCPP_SHARED_LIBS "Build shared libraries" ON )
10
10
option (BTCPP_BUILD_TOOLS "Build commandline tools" ON )
11
11
option (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 )
13
13
option (BTCPP_GROOT_INTERFACE "Add Groot2 connection. Requires ZeroMQ" ON )
14
14
option (BTCPP_SQLITE_LOGGING "Add SQLite logging." ON )
15
15
@@ -220,15 +220,16 @@ endif()
220
220
#############################################################
221
221
message ( STATUS "BTCPP_LIB_DESTINATION: ${BTCPP_LIB_DESTINATION} " )
222
222
message ( STATUS "BTCPP_INCLUDE_DESTINATION: ${BTCPP_INCLUDE_DESTINATION} " )
223
- message ( STATUS "BTCPP_UNIT_TESTS: ${BTCPP_UNIT_TESTS} " )
224
223
225
- if (BTCPP_UNIT_TESTS OR BTCPP_EXAMPLES )
224
+ if (BUILD_TESTING OR BTCPP_EXAMPLES )
226
225
add_subdirectory (sample_nodes )
227
226
endif ()
228
227
229
228
######################################################
230
229
231
- if (BTCPP_UNIT_TESTS )
230
+ include (CTest )
231
+ message ( STATUS "BUILD_TESTING: ${BUILD_TESTING} " )
232
+ if (BUILD_TESTING )
232
233
add_subdirectory (tests )
233
234
endif ()
234
235
You can’t perform that action at this time.
0 commit comments