9 lines
296 B
CMake
Raw Normal View History

2022-08-04 22:12:04 +02:00
enable_language(${LANGUAGE})
include(WarningAsErrorOptions.cmake)
get_warning_options(warning_options ${LANGUAGE})
add_executable(WerrorOff warn.${EXTENSION})
target_compile_options(WerrorOff PUBLIC "${warning_options}")
set_target_properties(WerrorOff PROPERTIES COMPILE_WARNING_AS_ERROR OFF)