File tree Expand file tree Collapse file tree 6 files changed +43
-5
lines changed Expand file tree Collapse file tree 6 files changed +43
-5
lines changed Original file line number Diff line number Diff line change @@ -38,5 +38,3 @@ target_link_libraries(_CoreFoundation PUBLIC
38
38
39
39
target_link_libraries (_CoreFoundation PRIVATE
40
40
dispatch )
41
-
42
- set_property (GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS _CoreFoundation )
Original file line number Diff line number Diff line change @@ -31,4 +31,4 @@ install(TARGETS Foundation
31
31
LIBRARY DESTINATION lib
32
32
RUNTIME DESTINATION bin )
33
33
34
- set_property (GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS Foundation )
34
+ set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS Foundation )
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ install(TARGETS FoundationNetworking
29
29
LIBRARY DESTINATION lib
30
30
RUNTIME DESTINATION bin )
31
31
32
- set_property (GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS FoundationNetworking )
32
+ set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS FoundationNetworking )
Original file line number Diff line number Diff line change @@ -29,4 +29,4 @@ install(TARGETS FoundationXML
29
29
LIBRARY DESTINATION lib
30
30
RUNTIME DESTINATION bin )
31
31
32
- set_property (GLOBAL APPEND PROPERTY SWIFT_FOUNDATION_EXPORTS FoundationXML )
32
+ set_property (GLOBAL APPEND PROPERTY Foundation_EXPORTS FoundationXML )
Original file line number Diff line number Diff line change
1
+ ##===----------------------------------------------------------------------===##
2
+ ##
3
+ ## This source file is part of the Swift open source project
4
+ ##
5
+ ## Copyright (c) 2024 Apple Inc. and the Swift project authors
6
+ ## Licensed under Apache License v2.0
7
+ ##
8
+ ## See LICENSE.txt for license information
9
+ ## See CONTRIBUTORS.md for the list of Swift project authors
10
+ ##
11
+ ## SPDX-License-Identifier: Apache-2.0
12
+ ##
13
+ ##===----------------------------------------------------------------------===##
14
+
15
+ set (Foundation_EXPORTS_FILE ${CMAKE_CURRENT_BINARY_DIR} /FoundationExports.cmake )
16
+ configure_file (FoundationConfig.cmake.in
17
+ ${CMAKE_CURRENT_BINARY_DIR} /FoundationConfig.cmake )
18
+
19
+ get_property (Foundation_EXPORTS GLOBAL PROPERTY Foundation_EXPORTS )
20
+ export (TARGETS ${Foundation_EXPORTS}
21
+ NAMESPACE Foundation::
22
+ FILE ${Foundation_EXPORTS_FILE}
23
+ EXPORT_LINK_INTERFACE_LIBRARIES )
Original file line number Diff line number Diff line change
1
+ ##===----------------------------------------------------------------------===##
2
+ ##
3
+ ## This source file is part of the Swift open source project
4
+ ##
5
+ ## Copyright (c) 2024 Apple Inc. and the Swift project authors
6
+ ## Licensed under Apache License v2.0
7
+ ##
8
+ ## See LICENSE.txt for license information
9
+ ## See CONTRIBUTORS.md for the list of Swift project authors
10
+ ##
11
+ ## SPDX-License-Identifier: Apache-2.0
12
+ ##
13
+ ##===----------------------------------------------------------------------===##
14
+
15
+ if (NOT TARGET Foundation )
16
+ include (@Foundation_EXPORTS_FILE@ )
17
+ endif ()
You can’t perform that action at this time.
0 commit comments