FindXCTest: Pass -bundle_loader linker flag for test module more reliably

This commit is contained in:
Brad King
2025-04-01 14:31:02 -04:00
parent faa225b63b
commit c653c1aa47
+2 -2
View File
@@ -171,8 +171,8 @@ function(xctest_add_bundle target testee)
LIBRARY_OUTPUT_DIRECTORY "${_output_directory}") LIBRARY_OUTPUT_DIRECTORY "${_output_directory}")
endif() endif()
else() else()
target_link_libraries(${target} target_link_options(${target}
PRIVATE -bundle_loader $<TARGET_FILE:${testee}>) PRIVATE "SHELL:-bundle_loader \"$<TARGET_FILE:${testee}>\"")
endif() endif()
else() else()