-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update cmake setup so that the library can be used by SwiftPM cmake b…
…uild (#73) Update cmake setup so that the library can be used by SwiftPM cmake build Motivation: integrate with SwiftPM changes: * rename the top level project to SwiftSystem instead of swift-system to align with other projects * rename System to SystemPackage to align with SwifPM setup * update architectures to include arm64 * Update cmake/modules/SwiftSystemConfig.cmake.in * Update cmake/modules/SwiftSupport.cmake
- Loading branch information
Showing
5 changed files
with
49 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#[[ | ||
This source file is part of the Swift System open source Project | ||
|
||
Copyright (c) 2021 Apple Inc. and the Swift System project authors | ||
Licensed under Apache License v2.0 with Runtime Library Exception | ||
|
||
See https://swift.org/LICENSE.txt for license information | ||
#]] | ||
|
||
set(SWIFT_SYSTEM_EXPORTS_FILE ${CMAKE_CURRENT_BINARY_DIR}/SwiftSystemExports.cmake) | ||
|
||
configure_file(SwiftSystemConfig.cmake.in | ||
${CMAKE_CURRENT_BINARY_DIR}/SwiftSystemConfig.cmake) | ||
|
||
get_property(SWIFT_SYSTEM_EXPORTS GLOBAL PROPERTY SWIFT_SYSTEM_EXPORTS) | ||
export(TARGETS ${SWIFT_SYSTEM_EXPORTS} | ||
NAMESPACE SwiftSystem:: | ||
FILE ${SWIFT_SYSTEM_EXPORTS_FILE} | ||
EXPORT_LINK_INTERFACE_LIBRARIES) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#[[ | ||
This source file is part of the Swift System open source Project | ||
|
||
Copyright (c) 2021 Apple Inc. and the Swift System project authors | ||
Licensed under Apache License v2.0 with Runtime Library Exception | ||
|
||
See https://swift.org/LICENSE.txt for license information | ||
#]] | ||
|
||
if(NOT TARGET SystemPackage) | ||
include(@SWIFT_SYSTEM_EXPORTS_FILE@) | ||
endif() |