Make valgrind happy

This commit is contained in:
Petri Lehtinen 2014-02-12 08:54:06 +02:00
parent 569295fe30
commit 4bbb53a25d

View File

@ -433,6 +433,8 @@ if (NOT JANSSON_WITHOUT_TESTS)
if (JANSSON_TEST_WITH_VALGRIND)
# TODO: Add FindValgrind.cmake instead of having a hardcoded path.
add_definitions(-DVALGRIND)
# enable valgrind
set(CMAKE_MEMORYCHECK_COMMAND valgrind)
set(CMAKE_MEMORYCHECK_COMMAND_OPTIONS