File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change 1
- cmake_minimum_required (VERSION 3.15.1 )
1
+ cmake_minimum_required (VERSION 3.19 )
2
2
3
3
project (SwiftTSC LANGUAGES C Swift )
4
4
5
- set (SWIFT_VERSION 5 )
6
- set (CMAKE_Swift_LANGUAGE_VERSION ${SWIFT_VERSION} )
7
- if (CMAKE_VERSION VERSION_LESS 3.16 )
8
- add_compile_options ($< $< COMPILE_LANGUAGE:Swift> :-swift-version$< SEMICOLON> ${SWIFT_VERSION} > )
9
- # Workaround for CMake 3.15 which doesn't link libraries properly on Windows
10
- set (CMAKE_LINK_LIBRARY_FLAG "-l" )
11
- endif ()
12
-
5
+ set (CMAKE_Swift_LANGUAGE_VERSION 5 )
13
6
set (CMAKE_Swift_MODULE_DIRECTORY ${CMAKE_BINARY_DIR} /swift )
14
7
15
- if (CMAKE_VERSION VERSION_LESS 3.16 AND CMAKE_SYSTEM_NAME STREQUAL Windows )
16
- set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
17
- set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
18
- else ()
19
- set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
20
- set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
21
- endif ()
8
+ set (CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
9
+ set (CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /lib )
22
10
set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin )
23
11
24
12
set (CMAKE_DISABLE_IN_SOURCE_BUILD YES )
You can’t perform that action at this time.
0 commit comments