Skip to content

Commit 64da069

Browse files
committed
[Runtimes][CMake] Rename SwiftCore target to swiftCore
This matches the case that we use in the Runtimes build system, so we rely the exported target instead of adding `-lswiftCore`. Addresses rdar://151700669
1 parent 02adf95 commit 64da069

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Runtimes/Supplemental/cmake/modules/FindSwiftCore.cmake

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Imported Targets
1010
1111
The following :prop_tgt:`IMPORTED` TARGETS may be defined:
1212
13-
``SwiftCore``
13+
``swiftCore``
1414
1515
Hint Variables
1616
^^^^^^^^^^^^^^
@@ -63,8 +63,8 @@ if(APPLE)
6363
NAMES "libswiftCore.tbd"
6464
HINTS
6565
"${CMAKE_OSX_SYSROOT}/usr/lib/swift")
66-
add_library(SwiftCore SHARED IMPORTED GLOBAL)
67-
set_target_properties(SwiftCore PROPERTIES
66+
add_library(swiftCore SHARED IMPORTED GLOBAL)
67+
set_target_properties(swiftCore PROPERTIES
6868
IMPORTED_IMPLIB "${SwiftCore_IMPLIB}"
6969
INTERFACE_INCLUDE_DIRECTORIES "${SwiftCore_INCLUDE_DIR}")
7070
find_package_handle_standard_args(SwiftCore DEFAULT_MSG
@@ -78,7 +78,7 @@ elseif(LINUX)
7878
find_library(SwiftCore_LIBRARY
7979
NAMES "libswiftCore.a"
8080
HINTS "${Swift_SDKROOT}/usr/lib/swift_static/linux-static")
81-
add_library(SwiftCore STATIC IMPORTED GLOBAL)
81+
add_library(swiftCore STATIC IMPORTED GLOBAL)
8282
else()
8383
find_path(SwiftCore_INCLUDE_DIR
8484
"Swift.swiftmodule"
@@ -87,9 +87,9 @@ elseif(LINUX)
8787
find_library(SwiftCore_LIBRARY
8888
NAMES "libswiftCore.so"
8989
HINTS "${Swift_SDKROOT}/usr/lib/swift/linux")
90-
add_library(SwiftCore SHARED IMPORTED GLOBAL)
90+
add_library(swiftCore SHARED IMPORTED GLOBAL)
9191
endif()
92-
set_target_properties(SwiftCore PROPERTIES
92+
set_target_properties(swiftCore PROPERTIES
9393
IMPORTED_LOCATION "${SwiftCore_LIBRARY}"
9494
INTERFACE_INCLUDE_DIRECTORIES "${SwiftCore_INCLUDE_DIR}")
9595
find_package_handle_standard_args(SwiftCore DEFAULT_MSG
@@ -108,8 +108,8 @@ elseif(WIN32)
108108
"$ENV{SDKROOT}/usr/lib/swift/${SwiftCore_PLATFORM_SUBDIR}/${SwiftCore_ARCH_SUBDIR}"
109109
"$ENV{SDKROOT}/usr/lib/swift")
110110

111-
add_library(SwiftCore SHARED IMPORTED GLOBAL)
112-
set_target_properties(SwiftCore PROPERTIES
111+
add_library(swiftCore SHARED IMPORTED GLOBAL)
112+
set_target_properties(swiftCore PROPERTIES
113113
IMPORTED_IMPLIB "${SwiftCore_LIBRARY}"
114114
INTERFACE_INCLUDE_DIRECTORIES "${SwiftCore_INCLUDE_DIR}")
115115
find_package_handle_standard_args(SwiftCore DEFAULT_MSG

0 commit comments

Comments
 (0)