Skip to content

Commit 569b5ed

Browse files
committed
build: add a workaround for CMake <3.16
This adjusts the prefix used for linking libraries. This is needed to ensure that the system libraries are linked properly on Windows. This has been fixed properly in CMake 3.16, adjust for 3.15.1.
1 parent accfc8f commit 569b5ed

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Foundation/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
if(CMAKE_VERSION VERSION_LESS 3.16)
3+
set(CMAKE_LINK_LIBRARY_FLAG "-l")
4+
endif()
5+
26
add_library(Foundation
37
AffineTransform.swift
48
Array.swift

0 commit comments

Comments
 (0)