👷 adding status messages

This commit is contained in:
Niels Lohmann 2017-08-25 20:19:58 +02:00
parent 05b97c473a
commit 3dcd360139
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -1,7 +1,8 @@
option(JSON_Sanitizer "Build with Clang Sanitizer" OFF)
option(JSON_Valgrind "Execute tests with Valgrind" OFF)
option(JSON_Sanitizer "Build test suite with Clang sanitizer" OFF)
option(JSON_Valgrind "Execute test suite with Valgrind" OFF)
if(JSON_Sanitizer)
message(STATUS "Building test suite with Clang sanitizer")
if(NOT MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O2 -fsanitize=address -fsanitize=undefined -fno-omit-frame-pointer")
endif()
@ -9,6 +10,7 @@ endif()
if(JSON_Valgrind)
find_program(CMAKE_MEMORYCHECK_COMMAND valgrind)
message(STATUS "Executing test suite with Valgrind (${CMAKE_MEMORYCHECK_COMMAND})")
set(MEMORYCHECK_COMMAND_OPTIONS "--error-exitcode=1 --leak-check=full")
set(memcheck_command "${CMAKE_MEMORYCHECK_COMMAND} ${CMAKE_MEMORYCHECK_COMMAND_OPTIONS}")
separate_arguments(memcheck_command)