summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-04-26 18:35:26 (GMT)
committerBrad King <brad.king@kitware.com>2023-04-26 18:36:46 (GMT)
commit0f6a1dd3ed129e4c18c84432e41381471d47c107 (patch)
tree2508099e1ef18748460c81abb6d2c04c6e584c21 /Modules
parent663cc941bd176347fb2fa89191629c6843bb4ebd (diff)
downloadCMake-0f6a1dd3ed129e4c18c84432e41381471d47c107.zip
CMake-0f6a1dd3ed129e4c18c84432e41381471d47c107.tar.gz
CMake-0f6a1dd3ed129e4c18c84432e41381471d47c107.tar.bz2
Ninja: Revert "Exclude NVHPC -Werror flags during Fortran preprocessing"
Revert commit 6b58cdd4cf (Ninja: Exclude NVHPC -Werror flags during Fortran preprocessing, 2023-04-04). Since commit 9d40f01442 (NVHPC: Use -Werror for COMPILE_OPTIONS_WARNING_AS_ERROR, 2023-04-13), `nvfortran` can handle the plain `-Werror` flag during preprocessing. Issue: #24665
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/NVHPC-Fortran.cmake1
1 files changed, 0 insertions, 1 deletions
diff --git a/Modules/Compiler/NVHPC-Fortran.cmake b/Modules/Compiler/NVHPC-Fortran.cmake
index 879c140..59755b3 100644
--- a/Modules/Compiler/NVHPC-Fortran.cmake
+++ b/Modules/Compiler/NVHPC-Fortran.cmake
@@ -1,4 +1,3 @@
include(Compiler/PGI-Fortran)
include(Compiler/NVHPC)
__compiler_nvhpc(Fortran)
-set(CMAKE_Fortran_PREPROCESS_SOURCE_EXCLUDE_FLAGS_REGEX "(^| )-Werror([=,][a-z][a-z-]+)?( |$)")