Add tests for multiple args to DL_PATHS in catch_discover_tests

This commit is contained in:
Martin Hořeňovský
2024-03-26 17:49:55 +01:00
parent 202bdee977
commit 3cd90c5c3b
2 changed files with 37 additions and 7 deletions

View File

@@ -16,7 +16,7 @@ include(Catch)
set(extra_args)
if (CMAKE_VERSION GREATER_EQUAL 3.27)
list(APPEND extra_args
DL_PATHS "$<TARGET_RUNTIME_DLL_DIRS:tests>"
DL_PATHS "${CMAKE_CURRENT_LIST_DIR};${CMAKE_CURRENT_LIST_DIR}/.."
)
endif ()
catch_discover_tests(tests ${extra_args})