TI compiler: Add support for COMPILE_WARNING_AS_ERROR target property

This commit is contained in:
Craig Scott
2022-08-11 14:13:15 +10:00
parent 425f6a0ef6
commit 1cd65dfa0e
2 changed files with 12 additions and 0 deletions

View File

@@ -348,3 +348,14 @@ Other Changes
* A precompiled Windows ``arm64`` binary is now provided on `cmake.org`_.
.. _`cmake.org`: https://cmake.org/download/
Updates
=======
Changes made since CMake 3.24.0 include the following.
3.24.1
------
* The :prop_tgt:`COMPILE_WARNING_AS_ERROR` target property now supports the
TI compiler.

View File

@@ -15,6 +15,7 @@ set(__COMPILER_TI_SOURCE_FLAG_CXX "--cpp_file")
set(__COMPILER_TI_SOURCE_FLAG_ASM "--asm_file")
macro(__compiler_ti lang)
set(CMAKE_${lang}_COMPILE_OPTIONS_WARNING_AS_ERROR "--emit_warnings_as_errors")
set(CMAKE_${lang}_RESPONSE_FILE_FLAG "--cmd_file=")
# Using --cmd_file flag is not possible after the --run_linker flag.
# By using a whitespace only the filename is used without flag.