diff --git a/cmake/CTestCustom.cmake b/cmake/CTestCustom.cmake index 65af3254c1..fcb09e42db 100644 --- a/cmake/CTestCustom.cmake +++ b/cmake/CTestCustom.cmake @@ -1,2 +1,4 @@ set(CTEST_CUSTOM_PRE_TEST "sh -c \"rm -rf ../test/tmp && mkdir ../test/tmp\"") set(CTEST_CUSTOM_POST_TEST ${CTEST_CUSTOM_PRE_TEST}) +set(CTEST_CUSTOM_PRE_MEMCHECK ${CTEST_CUSTOM_PRE_TEST}) +set(CTEST_CUSTOM_POST_MEMCHECK ${CTEST_CUSTOM_PRE_TEST})