Skip to content

Commit b5f18f5

Browse files
authored
Merge pull request #871 from artemcm/BumpCMakeMatchCompiler
Bump required CMake version to 3.19.6
2 parents 51233ed + 565ae6e commit b5f18f5

File tree

3 files changed

+3
-34
lines changed

3 files changed

+3
-34
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# See http://swift.org/LICENSE.txt for license information
77
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
88

9-
cmake_minimum_required(VERSION 3.15.1)
9+
cmake_minimum_required(VERSION 3.19.6)
1010

1111
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
1212

Sources/swift-driver/CMakeLists.txt

+1-18
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,4 @@ add_executable(swift-driver
1010
main.swift)
1111
target_link_libraries(swift-driver PUBLIC
1212
SwiftDriver
13-
SwiftDriverExecution)
14-
15-
# This is a fairly egregious workaround for the fact that in versions < 3.17,
16-
# executables do not get `-rpath` linker arguments for their linked library
17-
# dependencies (direct and transitive)
18-
if(CMAKE_VERSION VERSION_LESS 3.17)
19-
get_target_property(TSC_UTIL_LIB TSCUtility LOCATION)
20-
get_filename_component(TSC_LIB_DIR ${TSC_UTIL_LIB} DIRECTORY)
21-
22-
get_target_property(LLBUILD_LIB llbuildSwift LOCATION)
23-
get_filename_component(LLBUILD_LIB_DIR ${LLBUILD_LIB} DIRECTORY)
24-
25-
get_target_property(ARGPARSE_LIB ArgumentParser LOCATION)
26-
get_filename_component(ARGPARSE_LIB_DIR ${ARGPARSE_LIB} DIRECTORY)
27-
28-
set_property(TARGET swift-driver PROPERTY BUILD_RPATH
29-
${CMAKE_LIBRARY_OUTPUT_DIRECTORY};${TSC_LIB_DIR};${LLBUILD_LIB_DIR};${ARGPARSE_LIB_DIR})
30-
endif()
13+
SwiftDriverExecution)

Sources/swift-help/CMakeLists.txt

+1-15
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,4 @@ add_executable(swift-help
1111
target_link_libraries(swift-help PUBLIC
1212
SwiftOptions
1313
ArgumentParser
14-
TSCBasic)
15-
16-
# This is a fairly egregious workaround for the fact that in versions < 3.17,
17-
# executables do not get `-rpath` linker arguments for their linked library
18-
# dependencies (direct and transitive)
19-
if(CMAKE_VERSION VERSION_LESS 3.17)
20-
get_target_property(TSC_UTIL_LIB TSCUtility LOCATION)
21-
get_filename_component(TSC_LIB_DIR ${TSC_UTIL_LIB} DIRECTORY)
22-
23-
get_target_property(ARGPARSE_LIB ArgumentParser LOCATION)
24-
get_filename_component(ARGPARSE_LIB_DIR ${ARGPARSE_LIB} DIRECTORY)
25-
26-
set_property(TARGET swift-help PROPERTY BUILD_RPATH
27-
${CMAKE_LIBRARY_OUTPUT_DIRECTORY};${TSC_LIB_DIR};${ARGPARSE_LIB_DIR})
28-
endif()
14+
TSCBasic)

0 commit comments

Comments
 (0)