Skip to content

Commit fcf94ed

Browse files
committed
Add SwiftSubprocessConfig.cmake for use by dependent CMake projects
1 parent 5a07776 commit fcf94ed

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,3 +42,5 @@ add_subdirectory(Sources)
4242
export(EXPORT SwiftSubprocessTargets
4343
FILE "cmake/SwiftSubprocess/SwiftSubprocessTargets.cmake"
4444
NAMESPACE "SwiftSubprocess::")
45+
46+
add_subdirectory(cmake/modules)

cmake/modules/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift open source project
4+
##
5+
## Copyright (c) 2025 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See http://swift.org/LICENSE.txt for license information
9+
## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
##
11+
##===----------------------------------------------------------------------===##
12+
13+
configure_file(SwiftSubprocessConfig.cmake.in
14+
${CMAKE_CURRENT_BINARY_DIR}/SwiftSubprocessConfig.cmake)
15+
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift open source project
4+
##
5+
## Copyright (c) 2025 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See http://swift.org/LICENSE.txt for license information
9+
## See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
##
11+
##===----------------------------------------------------------------------===##
12+
13+
include(${CMAKE_CURRENT_BINARY_DIR}/../SwiftSubprocess/SwiftSubprocessTargets.cmake)

0 commit comments

Comments
 (0)