diff --git a/tests/ctest-default.cmake b/tests/ctest-default.cmake index 21c1b510..dbf53e30 100644 --- a/tests/ctest-default.cmake +++ b/tests/ctest-default.cmake @@ -39,7 +39,7 @@ set(CTEST_SOURCE_DIRECTORY "${CTEST_DIRECTORY}/${CTEST_BUILD_NAME}/source") set(CTEST_BINARY_DIRECTORY "${CTEST_DIRECTORY}/${CTEST_BUILD_NAME}/build") set(CTEST_MEMORYCHECK_SUPPRESSIONS_FILE ${CMAKE_SOURCE_DIR}/tests/valgrind.supp) -set(CTEST_MEMORYCHECK_COMMAND_OPTIONS " --trace-children-skip=sshd") +set(CTEST_MEMORYCHECK_COMMAND_OPTIONS " --trace-children-skip=${SSHD_EXECUTABLE}") find_program(CTEST_GIT_COMMAND NAMES git) find_program(CTEST_COVERAGE_COMMAND NAMES gcov)