continuable/cmake/compiler/clang.cmake
2017-11-13 13:32:16 +01:00

25 lines
555 B
CMake

# Enable full warnings
target_compile_options(continuable-features-warnings
INTERFACE
-Wall
-pedantic
-Wextra)
if (CTI_CONTINUABLE_WITH_AWAIT)
target_compile_options(continuable-coroutines
INTERFACE
-fcoroutines-ts)
target_compile_definitions(continuable-coroutines
INTERFACE
-DCONTINUABLE_HAS_EXPERIMENTAL_COROUTINE)
endif()
if (CTI_CONTINUABLE_WITH_NO_EXCEPTIONS)
target_compile_options(continuable-features-noexcept
INTERFACE
-fno-exceptions)
message(STATUS "Clang: Disabled exceptions")
endif()