Skip to content

Commit

Permalink
Use SHELL_PATH for clarity.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Mar 5, 2024
1 parent 6b4a45c commit 3b74480
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmake/modules/FindSwiftXCTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,9 @@ function(add_swift_xctest test_target testee)
OUTPUT ${test_main}
# If the executable target depends on DLLs their directories need to be injected into the PATH
# or they won't be found and the target will fail to run, so invoke it through cmake. Because
COMMAND ${CMAKE_COMMAND} -E env
$<$<LIST:LENGTH,$<TARGET_RUNTIME_DLL_DIRS:GenerateXCTestMain>>:--modify>
"$<LIST:TRANSFORM,$<TARGET_RUNTIME_DLL_DIRS:GenerateXCTestMain>,PREPEND,PATH=path_list_prepend:>"
COMMAND
${CMAKE_COMMAND} -E env
"PATH=$<SHELL_PATH:$<TARGET_RUNTIME_DLL_DIRS:GenerateXCTestMain>;$ENV{PATH}>"
--
$<TARGET_FILE:GenerateXCTestMain> -o ${test_main} ${sources}
DEPENDS ${sources} GenerateXCTestMain
Expand Down

0 comments on commit 3b74480

Please sign in to comment.