Skip to content

Commit 5a07776

Browse files
committed
Fix CMake build on macOS/BSDs
1 parent d66519d commit 5a07776

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/Subprocess/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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>:SHELL:-D SUBPROCESS_ASYNCIO_DISPATCH>")
4345
elseif(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>:SHELL:-D SUBPROCESS_ASYNCIO_DISPATCH>")
4751
endif()
4852

4953
target_compile_options(Subprocess PRIVATE

0 commit comments

Comments
 (0)