💚 fixed Valgrind options #1030
This commit is contained in:
parent
830c93fd09
commit
4efa8cdb4c
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue