From d670a4e22d08fa34d9c11dd241eff426abf062ee Mon Sep 17 00:00:00 2001 From: Joris Vaillant Date: Mon, 20 Nov 2023 17:25:48 +0100 Subject: [PATCH] test: use right path to load memorycheck template --- test.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test.cmake b/test.cmake index 17b1b90e9..b6b8c95d1 100644 --- a/test.cmake +++ b/test.cmake @@ -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})