Make valgrind happy
This commit is contained in:
parent
569295fe30
commit
4bbb53a25d
@ -433,6 +433,8 @@ if (NOT JANSSON_WITHOUT_TESTS)
|
|||||||
if (JANSSON_TEST_WITH_VALGRIND)
|
if (JANSSON_TEST_WITH_VALGRIND)
|
||||||
# TODO: Add FindValgrind.cmake instead of having a hardcoded path.
|
# TODO: Add FindValgrind.cmake instead of having a hardcoded path.
|
||||||
|
|
||||||
|
add_definitions(-DVALGRIND)
|
||||||
|
|
||||||
# enable valgrind
|
# enable valgrind
|
||||||
set(CMAKE_MEMORYCHECK_COMMAND valgrind)
|
set(CMAKE_MEMORYCHECK_COMMAND valgrind)
|
||||||
set(CMAKE_MEMORYCHECK_COMMAND_OPTIONS
|
set(CMAKE_MEMORYCHECK_COMMAND_OPTIONS
|
||||||
|
Loading…
Reference in New Issue
Block a user