Skip to content

Commit 4346168

Browse files
authored
Merge pull request #2671 from compnerd/the-war-of-1812
build: reapir the bundling of the OLSON database on Windows
2 parents 2a5bc4d + 38d097f commit 4346168

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Sources/Foundation/CMakeLists.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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>)
160160
endif()
161161

162162

0 commit comments

Comments
 (0)