summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-06-26 13:44:48 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-06-26 13:44:57 (GMT)
commitd599c9e92e7efcb7e177bb74a2f097e6b56ca39f (patch)
treef26bbb3660375f208f6ca126e6ec426128b7eec8 /Modules/Compiler
parent887fae8ccb1d438168d32ea3b4d92a28e586974c (diff)
parentf73ae7c510f30675ee3c6065b6411e19ca3ff04c (diff)
downloadCMake-d599c9e92e7efcb7e177bb74a2f097e6b56ca39f.zip
CMake-d599c9e92e7efcb7e177bb74a2f097e6b56ca39f.tar.gz
CMake-d599c9e92e7efcb7e177bb74a2f097e6b56ca39f.tar.bz2
Merge topic 'support_nvhpc_versions_without_isystem'
f73ae7c510 NVHPC: Support nvfortran versions that don't support isystem Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8588
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/NVHPC-Fortran.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/Compiler/NVHPC-Fortran.cmake b/Modules/Compiler/NVHPC-Fortran.cmake
index 59755b3..ca5f1b2 100644
--- a/Modules/Compiler/NVHPC-Fortran.cmake
+++ b/Modules/Compiler/NVHPC-Fortran.cmake
@@ -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()