Skip to content

Commit ffd3118

Browse files
authored
Update CMake build to account for _CShims --> _FoundationCShims (#696)
1 parent 60506f3 commit ffd3118

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

Sources/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
##
1313
##===----------------------------------------------------------------------===##
1414

15-
add_subdirectory(_CShims)
15+
add_subdirectory(_FoundationCShims)
1616
add_subdirectory(FoundationMacros)
1717
add_subdirectory(FoundationEssentials)
1818
add_subdirectory(FoundationInternationalization)

Sources/FoundationEssentials/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ target_compile_options(FoundationEssentials PRIVATE ${_SwiftFoundation_availabil
6767
target_compile_options(FoundationEssentials PRIVATE -package-name "SwiftFoundation")
6868

6969
target_link_libraries(FoundationEssentials PUBLIC
70-
_CShims
70+
_FoundationCShims
7171
_FoundationCollections)
7272

7373
if(NOT BUILD_SHARED_LIBS)
7474
target_compile_options(FoundationEssentials PRIVATE
75-
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _CShims>")
75+
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationCShims>")
7676
target_compile_options(FoundationEssentials PRIVATE
7777
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationCollections>")
7878
endif()

Sources/FoundationInternationalization/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ target_compile_options(FoundationInternationalization PRIVATE -package-name "Swi
3636

3737
target_link_libraries(FoundationInternationalization PUBLIC
3838
FoundationEssentials
39-
_CShims
39+
_FoundationCShims
4040
_FoundationICU)
4141

4242
if(NOT BUILD_SHARED_LIBS)
4343
target_compile_options(FoundationInternationalization PRIVATE
44-
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _CShims>")
44+
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationCShims>")
4545
target_compile_options(FoundationInternationalization PRIVATE
4646
"SHELL:$<$<COMPILE_LANGUAGE:Swift>:-Xfrontend -public-autolink-library -Xfrontend _FoundationICU>")
4747
endif()

Sources/_FoundationCShims/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
##
1313
##===----------------------------------------------------------------------===##
1414

15-
add_library(_CShims STATIC
15+
add_library(_FoundationCShims STATIC
1616
platform_shims.c
1717
string_shims.c
1818
uuid.c)
1919

20-
target_include_directories(_CShims PUBLIC include)
20+
target_include_directories(_FoundationCShims PUBLIC include)
2121

22-
set_property(GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS _CShims)
22+
set_property(GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS _FoundationCShims)
2323

2424
if(BUILD_SHARED_LIBS)
2525
set(install_directory swift)
@@ -31,11 +31,11 @@ endif()
3131
install(DIRECTORY
3232
include/
3333
DESTINATION
34-
lib/${install_directory}/_CShims)
34+
lib/${install_directory}/_FoundationCShims)
3535

3636
if(NOT BUILD_SHARED_LIBS)
3737
get_swift_host_os(swift_os)
38-
install(TARGETS _CShims
38+
install(TARGETS _FoundationCShims
3939
ARCHIVE DESTINATION lib/${install_directory}/${swift_os}
4040
LIBRARY DESTINATION lib/${install_directory}/${swift_os}
4141
RUNTIME DESTINATION bin)

0 commit comments

Comments
 (0)