diff --git a/src/tests/shared/CMakeLists.txt b/src/tests/shared/CMakeLists.txt index 3fdbe9250..b0d9bf4ec 100644 --- a/src/tests/shared/CMakeLists.txt +++ b/src/tests/shared/CMakeLists.txt @@ -1,3 +1,5 @@ add_executable(shared_test shared.cpp) target_link_libraries(shared_test ${EXTRA_LIBS} leanshared) -add_test(shared_test "${CMAKE_CURRENT_BINARY_DIR}/shared_test") +add_test(NAME shared_test + WORKING_DIRECTORY "${LEAN_BINARY_DIR}" + COMMAND "${CMAKE_CURRENT_BINARY_DIR}/shared_test")