diff options
author | Robert Maynard <rmaynard@nvidia.com> | 2022-06-27 15:17:52 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2022-07-01 12:05:19 (GMT) |
commit | 35ec676ace82806a316adb36608e8812f2c27bfd (patch) | |
tree | 1963d6b191f93f274e760a9dce5d1126021b3e2e /Tests | |
parent | cd324110d2ecef8dd955f7089382d15708cad98d (diff) | |
download | CMake-35ec676ace82806a316adb36608e8812f2c27bfd.zip CMake-35ec676ace82806a316adb36608e8812f2c27bfd.tar.gz CMake-35ec676ace82806a316adb36608e8812f2c27bfd.tar.bz2 |
NVHPC: warnings as error flag is "-Werror"
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/CompileWarningAsError/WarningAsErrorOptions.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/RunCMake/CompileWarningAsError/WarningAsErrorOptions.cmake b/Tests/RunCMake/CompileWarningAsError/WarningAsErrorOptions.cmake index 590c8a4..d8770e1 100644 --- a/Tests/RunCMake/CompileWarningAsError/WarningAsErrorOptions.cmake +++ b/Tests/RunCMake/CompileWarningAsError/WarningAsErrorOptions.cmake @@ -1,7 +1,7 @@ # add compile options to warning_options to ensure unused-function throws a warning # if warning_options is NOT DEFINED, assume compiler doesn't support warning as error macro(get_warning_options warning_options lang) - if (CMAKE_${lang}_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang|XLClang|IBMClang|LCC|IntelLLVM)$") + if (CMAKE_${lang}_COMPILER_ID MATCHES "^(GNU|Clang|AppleClang|XLClang|IBMClang|LCC|IntelLLVM|NVHPC)$") set(${warning_options} "-Wall") elseif (CMAKE_${lang}_COMPILER_ID STREQUAL "MSVC" OR (CMAKE_${lang}_COMPILER_ID STREQUAL "Intel" AND CMAKE_${lang}_SIMULATE_ID MATCHES "MSVC")) |