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)
4242export (EXPORT SwiftSubprocessTargets
4343 FILE "cmake/SwiftSubprocess/SwiftSubprocessTargets.cmake"
4444 NAMESPACE "SwiftSubprocess::" )
45+
46+ add_subdirectory (cmake/modules)
Original file line number Diff line number Diff line change @@ -40,10 +40,14 @@ elseif(APPLE)
4040 Platforms/Subprocess+BSD.swift
4141 Platforms/Subprocess+Darwin.swift
4242 Platforms/Subprocess+Unix .swift)
43+ target_compile_options (Subprocess PRIVATE
44+ "$<$<COMPILE_LANGUAGE:Swift>:-DSUBPROCESS_ASYNCIO_DISPATCH>" )
4345elseif (FREEBSD OR OPENBSD)
4446 target_sources (Subprocess PRIVATE
4547 Platforms/Subprocess+BSD.swift
4648 Platforms/Subprocess+Unix .swift)
49+ target_compile_options (Subprocess PRIVATE
50+ "$<$<COMPILE_LANGUAGE:Swift>:-DSUBPROCESS_ASYNCIO_DISPATCH>" )
4751endif ()
4852
4953target_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