Skip to content

Commit 7026f81

Browse files
committed
cmake: add -fcoroutines for GCC, regenerate both zips
1 parent 19db166 commit 7026f81

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

dist/processing-cpp-cmake.zip

2.13 KB
Binary file not shown.
0 Bytes
Binary file not shown.

scripts/generate_cmake.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,11 @@ def generate(out_dir: Path) -> None:
430430
if(WIN32 AND NOT MSVC)
431431
target_link_options(processing_cpp PUBLIC -mwindows)
432432
endif()
433+
# GCC 16+ requires -fcoroutines explicitly; earlier versions accept it silently.
434+
# MSVC and Clang enable coroutines via /std:c++20 or -std=c++20 automatically.
435+
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
436+
target_compile_options(processing_cpp PUBLIC -fcoroutines)
437+
endif()
433438
434439
# -----------------------------------------------------------------------------
435440
# install + export, so `cmake --install` followed by `find_package(processing_cpp)`

0 commit comments

Comments
 (0)