Skip to content

Commit 836bc45

Browse files
authored
Merge pull request #74 from compnerd/leaky-cauldron
build: install CSystem into the system
2 parents 5703dc2 + 5d68cf0 commit 836bc45

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

Sources/CSystem/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@ target_include_directories(CSystem INTERFACE
1212
include)
1313

1414

15+
install(FILES
16+
include/CSystemLinux.h
17+
include/CSystemWindows.h
18+
include/module.modulemap
19+
DESTINATION include/CSystem)
1520
set_property(GLOBAL APPEND PROPERTY SWIFT_SYSTEM_EXPORTS CSystem)

Sources/System/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ target_sources(SystemPackage PRIVATE
3434
Internals/Mocking.swift
3535
Internals/Syscalls.swift
3636
Internals/WindowsSyscallAdapters.swift)
37-
target_link_libraries(SystemPackage PRIVATE
37+
target_link_libraries(SystemPackage PUBLIC
3838
CSystem)
3939

4040

0 commit comments

Comments
 (0)