💚 fixed Valgrind options #1030

This commit is contained in:
Niels Lohmann 2018-03-29 17:19:21 +02:00
parent 830c93fd09
commit 4efa8cdb4c
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69

View file

@ -13,8 +13,7 @@ endif()
if(JSON_Valgrind) if(JSON_Valgrind)
find_program(CMAKE_MEMORYCHECK_COMMAND valgrind) find_program(CMAKE_MEMORYCHECK_COMMAND valgrind)
message(STATUS "Executing test suite with Valgrind (${CMAKE_MEMORYCHECK_COMMAND})") 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} --error-exitcode=1 --leak-check=full")
set(memcheck_command "${CMAKE_MEMORYCHECK_COMMAND} ${CMAKE_MEMORYCHECK_COMMAND_OPTIONS}")
separate_arguments(memcheck_command) separate_arguments(memcheck_command)
endif() endif()