continuable/cmake/compiler/clang.cmake

16 lines
300 B
CMake

# Enable full warnings
target_compile_options(continuable-features-warnings
INTERFACE
-Wall
-pedantic
-Wextra)
if (TESTS_NO_EXCEPTIONS)
target_compile_options(continuable-features-noexcept
INTERFACE
-fno-exceptions)
message(STATUS "Clang: Disabled exceptions")
endif()