Skip to content

Commit 4530131

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

File tree

3 files changed

+28
-0
lines changed

3 files changed

+28
-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: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org 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 https://swift.org/LICENSE.txt for license information
9+
##
10+
##===----------------------------------------------------------------------===##
11+
12+
configure_file(SwiftSubprocessConfig.cmake.in
13+
${CMAKE_CURRENT_BINARY_DIR}/SwiftSubprocessConfig.cmake)
14+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org 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 https://swift.org/LICENSE.txt for license information
9+
##
10+
##===----------------------------------------------------------------------===##
11+
12+
include(${CMAKE_CURRENT_BINARY_DIR}/../SwiftSubprocess/SwiftSubprocessTargets.cmake)

0 commit comments

Comments
 (0)