Skip to content

Commit 366b57c

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

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
@@ -102,7 +102,7 @@ if(NOT BUILD_SHARED_LIBS)
102102
target_compile_options(FoundationEssentials PRIVATE
103103
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend $<$<PLATFORM_ID:Windows>:${CMAKE_STATIC_LIBRARY_PREFIX_Swift}>_FoundationCollections>")
104104
target_compile_options(FoundationEssentials PRIVATE
105-
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend swiftSynchronization>")
105+
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend $<$<PLATFORM_ID:Windows>:${CMAKE_STATIC_LIBRARY_PREFIX_Swift}>swiftSynchronization>")
106106
endif()
107107

108108
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)