Skip to content

Commit

Permalink
test: use right path to load memorycheck template
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 22, 2023
1 parent 62c38df commit d670a4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,9 @@ macro(ADD_PYTHON_MEMORYCHECK_UNIT_TEST NAME SOURCE)
if(MEMORYCHECK_COMMAND AND MEMORYCHECK_COMMAND MATCHES ".*valgrind$")
set(TEST_FILE_NAME memorycheck_unit_test_${NAME}.cmake)
set(PYTHON_TEST_SCRIPT "${PROJECT_SOURCE_DIR}/${SOURCE}")
configure_file(memorycheck_unit_test.cmake.in ${TEST_FILE_NAME} @ONLY)
configure_file(
${PROJECT_JRL_CMAKE_MODULE_DIR}/memorycheck_unit_test.cmake.in
${TEST_FILE_NAME} @ONLY)

add_test(NAME ${NAME} COMMAND ${CMAKE_COMMAND} -P ${TEST_FILE_NAME})

Expand Down

0 comments on commit d670a4e

Please sign in to comment.