File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -152,11 +152,11 @@ set_target_properties(Foundation PROPERTIES
152152 Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR} /swift
153153 INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_BINARY_DIR} /swift)
154154
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
155+ if (CMAKE_SYSTEM_NAME STREQUAL Windows)
156+ # NOTE: workaround for CMake which doesn't link in OBJECT libraries properly
158157 add_dependencies (Foundation CoreFoundationResources)
159- target_link_options (Foundation PRIVATE $<TARGET_OBJECTS:CoreFoundationResources>)
158+ target_link_options (Foundation PRIVATE
159+ $<TARGET_OBJECTS:CoreFoundationResources>)
160160endif ()
161161
162162
You can’t perform that action at this time.
0 commit comments