mirror of
https://github.com/Naios/continuable.git
synced 2025-12-06 16:56:44 +08:00
25 lines
529 B
CMake
25 lines
529 B
CMake
# Enable full warnings
|
|
target_compile_options(continuable-features-warnings
|
|
INTERFACE
|
|
-Wall
|
|
-pedantic
|
|
-Wextra)
|
|
|
|
if (WITH_COROUTINES)
|
|
target_compile_options(continuable-coroutines
|
|
INTERFACE
|
|
-fcoroutines-ts)
|
|
|
|
target_compile_definitions(continuable-coroutines
|
|
INTERFACE
|
|
-DCONTINUABLE_HAS_EXPERIMENTAL_COROUTINE)
|
|
endif()
|
|
|
|
if (TESTS_NO_EXCEPTIONS)
|
|
target_compile_options(continuable-features-noexcept
|
|
INTERFACE
|
|
-fno-exceptions)
|
|
|
|
message(STATUS "Clang: Disabled exceptions")
|
|
endif()
|