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 2a5bc4d + 38d097f commit 4346168Copy full SHA for 4346168
Sources/Foundation/CMakeLists.txt
@@ -152,11 +152,11 @@ set_target_properties(Foundation PROPERTIES
152
Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/swift
153
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_BINARY_DIR}/swift)
154
155
-if(CMAKE_SYSTEM_NAME STREQUAL Windows AND CMAKE_VERSION VERSION_LESS 3.16)
156
- # Workaround for CMake 3.15 which doesn't link in the resource file target
157
- # properly
+if(CMAKE_SYSTEM_NAME STREQUAL Windows)
+ # NOTE: workaround for CMake which doesn't link in OBJECT libraries properly
158
add_dependencies(Foundation CoreFoundationResources)
159
- target_link_options(Foundation PRIVATE $<TARGET_OBJECTS:CoreFoundationResources>)
+ target_link_options(Foundation PRIVATE
+ $<TARGET_OBJECTS:CoreFoundationResources>)
160
endif()
161
162
0 commit comments