File tree Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Expand file tree Collapse file tree 4 files changed +32
-0
lines changed Original file line number Diff line number Diff line change @@ -42,3 +42,5 @@ add_subdirectory(Sources)
42
42
export (EXPORT SwiftSubprocessTargets
43
43
FILE "cmake/SwiftSubprocess/SwiftSubprocessTargets.cmake"
44
44
NAMESPACE "SwiftSubprocess::" )
45
+
46
+ add_subdirectory (cmake/modules)
Original file line number Diff line number Diff line change @@ -40,10 +40,14 @@ elseif(APPLE)
40
40
Platforms/Subprocess+BSD.swift
41
41
Platforms/Subprocess+Darwin.swift
42
42
Platforms/Subprocess+Unix .swift)
43
+ target_compile_options (Subprocess PRIVATE
44
+ "$<$<COMPILE_LANGUAGE:Swift>:-DSUBPROCESS_ASYNCIO_DISPATCH>" )
43
45
elseif (FREEBSD OR OPENBSD)
44
46
target_sources (Subprocess PRIVATE
45
47
Platforms/Subprocess+BSD.swift
46
48
Platforms/Subprocess+Unix .swift)
49
+ target_compile_options (Subprocess PRIVATE
50
+ "$<$<COMPILE_LANGUAGE:Swift>:-DSUBPROCESS_ASYNCIO_DISPATCH>" )
47
51
endif ()
48
52
49
53
target_compile_options (Subprocess PRIVATE
Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change
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)
You can’t perform that action at this time.
0 commit comments