build: Fix default for BUILD_TESTING

This commit is contained in:
Dennis Klein 2021-06-09 14:33:43 +02:00
parent 2b8a6b3223
commit 1fe3a73767
3 changed files with 3 additions and 3 deletions

View File

@ -49,6 +49,7 @@ fairmq_build_option(FAIRMQ_DEBUG_MODE "Compile in debug mode (may decrease per
# Dependencies #################################################################
include(CTest)
include(FairMQDependencies)
################################################################################

View File

@ -8,7 +8,6 @@
include_guard(GLOBAL)
include(CTest)
include(GNUInstallDirs)
string(TOLOWER ${PROJECT_NAME} PROJECT_NAME_LOWER)

View File

@ -22,9 +22,9 @@ macro(fairmq_summary_components)
endif()
message(STATUS " ${BWhite}fairmq${CR} ${fairmq_summary}")
if(BUILD_TESTING)
set(tests_summary "${BGreen}YES${CR} (default, disable with ${BMagenta}-DBUILD_TESTING=OFF${CR})")
set(tests_summary "${BGreen}YES${CR} (disable with ${BMagenta}-DBUILD_TESTING=OFF${CR})")
else()
set(tests_summary "${BRed} NO${CR} (enable with ${BMagenta}-DBUILD_TESTING=ON${CR})")
set(tests_summary "${BRed} NO${CR} (default, enable with ${BMagenta}-DBUILD_TESTING=ON${CR})")
endif()
message(STATUS " ${BWhite}tests${CR} ${tests_summary}")
if(BUILD_OFI_TRANSPORT)