build: install CSystem into the system

CSystem is a leaky library dependency from System and must be
distributed.  Install the files and make the dependency public so that
it is emitted into the clients.
This commit is contained in:
Saleem Abdulrasool committed 2021-12-02 09:19:43 -08:00
1 parent 5703dc2b4d
commit 5d68cf0eca
2 files changed
+6 -1

No files matched your search

+5
View File
@@ -12,4 +12,9 @@ target_include_directories(CSystem INTERFACE
include)
install(FILES
include/CSystemLinux.h
include/CSystemWindows.h
include/module.modulemap
DESTINATION include/CSystem)
set_property(GLOBAL APPEND PROPERTY SWIFT_SYSTEM_EXPORTS CSystem)
+1 -1
View File
@@ -34,7 +34,7 @@ target_sources(SystemPackage PRIVATE
Internals/Mocking.swift
Internals/Syscalls.swift
Internals/WindowsSyscallAdapters.swift)
target_link_libraries(SystemPackage PRIVATE
target_link_libraries(SystemPackage PUBLIC
CSystem)