diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ce0d9d74c..7c49dd587 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -215,7 +215,7 @@ target_compile_options(unit_tests PRIVATE ) endif() -add_test(NAME unit_tests COMMAND unit_tests WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/test) +add_test(NAME unit_tests COMMAND unit_tests WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) target_include_directories (unit_tests PUBLIC ${JSONCONS_INCLUDE_DIR}