summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2022-08-11 04:13:15 (GMT)
committerCraig Scott <craig.scott@crascit.com>2022-08-11 22:27:19 (GMT)
commit1cd65dfa0e473788bdb870340fe16da5621fd2ff (patch)
tree5d5c32e3f2bcf4c37f2a608256c0cd5e1d9f1c50
parent425f6a0ef6c3fd86d3ed5f12f03e68b01976f036 (diff)
downloadCMake-1cd65dfa0e473788bdb870340fe16da5621fd2ff.zip
CMake-1cd65dfa0e473788bdb870340fe16da5621fd2ff.tar.gz
CMake-1cd65dfa0e473788bdb870340fe16da5621fd2ff.tar.bz2
TI compiler: Add support for COMPILE_WARNING_AS_ERROR target property
-rw-r--r--Help/release/3.24.rst11
-rw-r--r--Modules/Compiler/TI.cmake1
2 files changed, 12 insertions, 0 deletions
diff --git a/Help/release/3.24.rst b/Help/release/3.24.rst
index 02252e0..3141255 100644
--- a/Help/release/3.24.rst
+++ b/Help/release/3.24.rst
@@ -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.
diff --git a/Modules/Compiler/TI.cmake b/Modules/Compiler/TI.cmake
index 0f9ded3..6cb115b 100644
--- a/Modules/Compiler/TI.cmake
+++ b/Modules/Compiler/TI.cmake
@@ -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.