summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorCraig Scott <craig.scott@crascit.com>2023-04-10 21:34:30 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-04-10 21:34:47 (GMT)
commit453cf8a1968081731b667edd01ff942adf1f7bcc (patch)
tree498c41966a110aad3189ce364ec1f92c26bf2bfc /Modules
parent83525bfd7a247b6daca4445fd4c003c2315f45ce (diff)
parent6b58cdd4cf59d6d5c66c66daf81112f911e84238 (diff)
downloadCMake-453cf8a1968081731b667edd01ff942adf1f7bcc.zip
CMake-453cf8a1968081731b667edd01ff942adf1f7bcc.tar.gz
CMake-453cf8a1968081731b667edd01ff942adf1f7bcc.tar.bz2
Merge topic 'ninja-nvhpc-fortran-Werror'
6b58cdd4cf Ninja: Exclude NVHPC -Werror flags during Fortran preprocessing Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8393
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/NVHPC-Fortran.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/NVHPC-Fortran.cmake b/Modules/Compiler/NVHPC-Fortran.cmake
index 59755b3..5c06457 100644
--- a/Modules/Compiler/NVHPC-Fortran.cmake
+++ b/Modules/Compiler/NVHPC-Fortran.cmake
@@ -1,3 +1,4 @@
include(Compiler/PGI-Fortran)
include(Compiler/NVHPC)
__compiler_nvhpc(Fortran)
+set(CMAKE_Fortran_PREPROCESS_SOURCE_EXCLUDE_FLAGS_REGEX "(^| )-Werror +[a-z][a-z-]+( |$)")