Skip to content

Commit

Permalink
Fix WORKING_DIRECTORY for unit tests
Browse files Browse the repository at this point in the history
When jsoncons was fetched from another project, ctest failed because the path wasn't found
  • Loading branch information
Pierre Gradot committed Jun 12, 2024
1 parent 40b9985 commit e79798a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e79798a

Please sign in to comment.