Skip to content

Commit

Permalink
Try using SHELL_PATH instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Mar 5, 2024
1 parent d931f0f commit 66c3189
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmake/modules/FindSwiftXCTest.cmake
Expand Up @@ -126,8 +126,7 @@ function(add_swift_xctest test_target testee)
# 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,$<LIST:TRANSFORM,$<TARGET_RUNTIME_DLL_DIRS:GenerateXCTestMain>,PREPEND,\"PATH=>,APPEND,\">"
"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 66c3189

Please sign in to comment.