diff --git a/Sources/CSystem/CMakeLists.txt b/Sources/CSystem/CMakeLists.txt index 6dba7ff2..0f5d8e8a 100644 --- a/Sources/CSystem/CMakeLists.txt +++ b/Sources/CSystem/CMakeLists.txt @@ -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) diff --git a/Sources/System/CMakeLists.txt b/Sources/System/CMakeLists.txt index e77fa5d9..43958d31 100644 --- a/Sources/System/CMakeLists.txt +++ b/Sources/System/CMakeLists.txt @@ -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)