Skip to content

Commit d720668

Browse files
committed
Revert "Revert "build: adjust the autolink library for Windows (#1312)" (#1417)"
This reverts commit 77b7cf4.
1 parent ff8fb1c commit d720668

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/FoundationEssentials/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ if(NOT BUILD_SHARED_LIBS)
104104
target_compile_options(FoundationEssentials PRIVATE
105105
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend $<$<PLATFORM_ID:Windows>:${CMAKE_STATIC_LIBRARY_PREFIX_Swift}>_FoundationCollections>")
106106
target_compile_options(FoundationEssentials PRIVATE
107-
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>")
107+
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend $<$<PLATFORM_ID:Windows>:${CMAKE_STATIC_LIBRARY_PREFIX_Swift}>swiftSynchronization>")
108108
endif()
109109

110110
set_target_properties(FoundationEssentials PROPERTIES

Sources/FoundationInternationalization/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ if(NOT BUILD_SHARED_LIBS)
4949
target_compile_options(FoundationInternationalization PRIVATE
5050
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>")
5151
target_compile_options(FoundationEssentials PRIVATE
52-
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>")
52+
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend $<$<PLATFORM_ID:Windows>:${CMAKE_STATIC_LIBRARY_PREFIX_Swift}>swiftSynchronization>")
5353
endif()
5454

5555
set_target_properties(FoundationInternationalization PROPERTIES

0 commit comments

Comments
 (0)