mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-27 04:09:36 +03:00
IAR: Implement COMPILE_WARNING_AS_ERROR
This commit is contained in:
@@ -23,6 +23,8 @@ macro(__compiler_iar_common lang)
|
||||
string(APPEND CMAKE_${lang}_FLAGS_RELWITHDEBINFO_INIT " -Oh -r -DNDEBUG")
|
||||
|
||||
set(CMAKE_${lang}_LINK_MODE LINKER)
|
||||
|
||||
set(CMAKE_${lang}_COMPILE_OPTIONS_WARNING_AS_ERROR "--warnings_are_errors")
|
||||
endif()
|
||||
|
||||
set(CMAKE_${lang}_OUTPUT_EXTENSION_REPLACE 1)
|
||||
|
||||
Reference in New Issue
Block a user