You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
292 B
9 lines
292 B
2 years ago
|
enable_language(${LANGUAGE})
|
||
|
|
||
|
include(WarningAsErrorOptions.cmake)
|
||
|
get_warning_options(warning_options ${LANGUAGE})
|
||
|
|
||
|
add_executable(WerrorOn warn.${EXTENSION})
|
||
|
target_compile_options(WerrorOn PUBLIC "${warning_options}")
|
||
|
set_target_properties(WerrorOn PROPERTIES COMPILE_WARNING_AS_ERROR ON)
|