Skip to content

Commit

Permalink
Try to quote the cmae -E env arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrahams committed Mar 5, 2024
1 parent 4f7d408 commit d931f0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/modules/FindSwiftXCTest.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function(add_swift_xctest test_target testee)
# 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=>"
"$<LIST:TRANSFORM,$<LIST:TRANSFORM,$<TARGET_RUNTIME_DLL_DIRS:GenerateXCTestMain>,PREPEND,\"PATH=>,APPEND,\">"
--
$<TARGET_FILE:GenerateXCTestMain> -o ${test_main} ${sources}
DEPENDS ${sources} GenerateXCTestMain
Expand Down

0 comments on commit d931f0f

Please sign in to comment.