diff options
author | Brad King <brad.king@kitware.com> | 2022-07-05 14:32:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2022-07-05 14:32:55 (GMT) |
commit | aa1eaf6b8ab1ca996cbc471a05780f920037d947 (patch) | |
tree | efc61a2a556fe45a2d9d8b22d6b7e1fe7ff092f4 /Tests/RunCMake | |
parent | ab4d7a075687f1f1974b212ee8e5350fd25e5d3c (diff) | |
parent | 35ec676ace82806a316adb36608e8812f2c27bfd (diff) | |
download | CMake-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 'Tests/RunCMake')
-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")) |