summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2022-06-27 15:17:52 (GMT)
committerBrad King <brad.king@kitware.com>2022-07-01 12:05:19 (GMT)
commit35ec676ace82806a316adb36608e8812f2c27bfd (patch)
tree1963d6b191f93f274e760a9dce5d1126021b3e2e /Modules
parentcd324110d2ecef8dd955f7089382d15708cad98d (diff)
downloadCMake-35ec676ace82806a316adb36608e8812f2c27bfd.zip
CMake-35ec676ace82806a316adb36608e8812f2c27bfd.tar.gz
CMake-35ec676ace82806a316adb36608e8812f2c27bfd.tar.bz2
NVHPC: warnings as error flag is "-Werror"
Diffstat (limited to 'Modules')
-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()