Files
meta.hpp/develop/cmake/DisableExceptions.cmake
2023-01-10 18:47:50 +07:00

6 lines
238 B
CMake

add_library(${PROJECT_NAME}.disable_exceptions INTERFACE)
add_library(${PROJECT_NAME}::disable_exceptions ALIAS ${PROJECT_NAME}.disable_exceptions)
target_compile_options(${PROJECT_NAME}.disable_exceptions INTERFACE
-fno-exceptions)