mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-02 04:09:33 -05:00
6b58cdd4cf
The Ninja generator preprocesses Fortran separately in order to scan for module dependencies. NVHPC's `nvfortran` does not support its `-Werror` flag while preprocessing with `-E`, so filter it out. Fixes: #24665
5 lines
171 B
CMake
5 lines
171 B
CMake
include(Compiler/PGI-Fortran)
|
|
include(Compiler/NVHPC)
|
|
__compiler_nvhpc(Fortran)
|
|
set(CMAKE_Fortran_PREPROCESS_SOURCE_EXCLUDE_FLAGS_REGEX "(^| )-Werror +[a-z][a-z-]+( |$)")
|