NVHPC: Support nvfortran versions that don't support isystem

Fixes: #25019
This commit is contained in:
Robert Maynard
2023-06-23 09:21:41 -04:00
committed by Brad King
parent f58c7659d8
commit f73ae7c510
7 changed files with 16 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
include(Compiler/PGI-Fortran)
include(Compiler/NVHPC)
__compiler_nvhpc(Fortran)
if(CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 21.7)
# Before NVHPC 21.7 nvfortran didn't support isystem
unset(CMAKE_INCLUDE_SYSTEM_FLAG_Fortran)
endif()