Skip to content

Commit

Permalink
[Debug] try DL_PATHS
Browse files Browse the repository at this point in the history
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de>
  • Loading branch information
LecrisUT committed Feb 26, 2024
1 parent e82566a commit ca81ec0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ foreach (test_type IN ITEMS
add_subdirectory(${test_type})
endforeach ()

set(extra_args)
set(test_properties
# Manually hard-coding labels until upstream support is included
# https://github.com/catchorg/Catch2/pull/2690
Expand All @@ -157,7 +158,11 @@ if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.27)
list(APPEND test_properties
ENVIRONMENT_MODIFICATION "PATH=path_list_prepend:$<JOIN:$<TARGET_RUNTIME_DLL_DIRS:test-suite>,\;>"
)
list(APPEND extra_args
DL_PATHS "$<TARGET_RUNTIME_DLL_DIRS:test-suite>"
)
endif ()
catch_discover_tests(test-suite
PROPERTIES ${test_properties}
${extra_args}
)

0 comments on commit ca81ec0

Please sign in to comment.