summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-07-05 14:32:46 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-07-05 14:32:55 (GMT)
commitaa1eaf6b8ab1ca996cbc471a05780f920037d947 (patch)
treeefc61a2a556fe45a2d9d8b22d6b7e1fe7ff092f4 /Modules/Compiler
parentab4d7a075687f1f1974b212ee8e5350fd25e5d3c (diff)
parent35ec676ace82806a316adb36608e8812f2c27bfd (diff)
downloadCMake-aa1eaf6b8ab1ca996cbc471a05780f920037d947.zip
CMake-aa1eaf6b8ab1ca996cbc471a05780f920037d947.tar.gz
CMake-aa1eaf6b8ab1ca996cbc471a05780f920037d947.tar.bz2
Merge topic 'nvhpc-Werror'
35ec676ace NVHPC: warnings as error flag is "-Werror" Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7415
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/NVHPC.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/NVHPC.cmake b/Modules/Compiler/NVHPC.cmake
index 21d0665..957dacd 100644
--- a/Modules/Compiler/NVHPC.cmake
+++ b/Modules/Compiler/NVHPC.cmake
@@ -13,5 +13,5 @@ include(Compiler/PGI)
macro(__compiler_nvhpc lang)
# Logic specific to NVHPC.
set(CMAKE_INCLUDE_SYSTEM_FLAG_${lang} "-isystem ")
- set(CMAKE_${lang}_COMPILE_OPTIONS_WARNING_AS_ERROR "--Werror all-warnings")
+ set(CMAKE_${lang}_COMPILE_OPTIONS_WARNING_AS_ERROR "-Werror all-warnings")
endmacro()