diff options
| author | Cristian Le | 2024-02-26 11:09:07 +0100 |
|---|---|---|
| committer | Martin Hořeňovský | 2024-03-26 18:04:17 +0100 |
| commit | 202bdee9770da4fd4bd6d2f2da683aae1f5f18e5 (patch) | |
| tree | 6a33baee6fa58d1b1848007a783a0c88ae51819f /tests/TestScripts | |
| parent | bfe3ff8f19d3436381b4e3a18c13734d21a8b089 (diff) | |
| download | catch3-202bdee9770da4fd4bd6d2f2da683aae1f5f18e5.tar.gz | |
Fix `TEST_DL_PATHS` to be multi-args
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
Diffstat (limited to 'tests/TestScripts')
| -rw-r--r-- | tests/TestScripts/DiscoverTests/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/TestScripts/DiscoverTests/CMakeLists.txt b/tests/TestScripts/DiscoverTests/CMakeLists.txt index d19f2f88..2919303e 100644 --- a/tests/TestScripts/DiscoverTests/CMakeLists.txt +++ b/tests/TestScripts/DiscoverTests/CMakeLists.txt @@ -11,6 +11,12 @@ add_executable(tests add_subdirectory(${CATCH2_PATH} catch2-build) target_link_libraries(tests PRIVATE Catch2::Catch2WithMain) -include(CTest) +enable_testing() include(Catch) -catch_discover_tests(tests) +set(extra_args) +if (CMAKE_VERSION GREATER_EQUAL 3.27) + list(APPEND extra_args + DL_PATHS "$<TARGET_RUNTIME_DLL_DIRS:tests>" + ) +endif () +catch_discover_tests(tests ${extra_args}) |