summaryrefslogtreecommitdiff
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-08-15 14:51:30 +0000
committerKitware Robot <kwrobot@kitware.com>2022-08-15 10:51:44 -0400
commit732cad4952e404e86758e0ecba197135c3ae777b (patch)
tree03d471968ebcd2384e32d68a1d61c3a082d3840a /Modules/Compiler
parent2d08a35b5095cb011b363055c4b09ff18a49786c (diff)
parent1cd65dfa0e473788bdb870340fe16da5621fd2ff (diff)
downloadcmake-732cad4952e404e86758e0ecba197135c3ae777b.tar.gz
Merge topic 'warning-as-error-ti-compiler' into release-3.24
1cd65dfa0e TI compiler: Add support for COMPILE_WARNING_AS_ERROR target property Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Josef Angstenberger <code@jtxa.de> Merge-request: !7560
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/TI.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/TI.cmake b/Modules/Compiler/TI.cmake
index 0f9ded3ca4..6cb115bafc 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.