blob: a7e90b38e539cc3bfc7b501edd9add5e506290a6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
set(DISABLE_TESTS_LOGGING TRUE CACHE BOOL "Disable Ouroboros log output in tests")
if (DISABLE_TESTS_LOGGING)
message(STATUS "Ouroboros logging in test output disabled")
else ()
message(STATUS "Ouroboros logging in test output enabled")
endif ()
set(DISABLE_TESTS_CORE_DUMPS TRUE CACHE BOOL "Enable core dumps for tests (useful for debugging)")
if (DISABLE_TESTS_CORE_DUMPS)
message(STATUS "Core dumps in tests enabled")
else ()
message(STATUS "Core dumps in tests disabled")
endif ()
macro(disable_test_logging_for_target target)
if (DISABLE_TESTS_LOGGING)
target_compile_definitions(${target} PRIVATE OUROBOROS_DISABLE_LOGGING)
endif ()
if (DISABLE_TESTS_CORE_DUMPS)
target_compile_definitions(${target} PRIVATE DISABLE_TESTS_CORE_DUMPS)
endif ()
endmacro()
|