We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents da23205 + b9476ce commit 451fd09Copy full SHA for 451fd09
cmake/modules/AddSwiftUnittests.cmake
@@ -57,9 +57,11 @@ function(add_swift_unittest test_dirname)
57
_ENABLE_EXTENDED_ALIGNED_STORAGE)
58
endif()
59
60
- if(SWIFT_USE_LINKER)
61
- set_property(TARGET "${test_dirname}" APPEND_STRING PROPERTY
62
- LINK_FLAGS " -fuse-ld=${SWIFT_USE_LINKER}")
+ if(NOT SWIFT_COMPILER_IS_MSVC_LIKE)
+ if(SWIFT_USE_LINKER)
+ target_link_options(${test_dirname} PRIVATE
63
+ -fuse-ld=${SWIFT_USE_LINKER}$<$<STREQUAL:${CMAKE_HOST_SYSTEM_NAME},Windows>:.exe>)
64
+ endif()
65
66
67
if(SWIFT_ANALYZE_CODE_COVERAGE)
0 commit comments