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:56 (GMT)
commitb7810bfb185afc073c3c14ac3af21c6b0ad6a8f5 (patch)
tree9979054874e45e3cb9dcbe133e57a4ca2cb1cf0f /Modules/Compiler
parent529b818378843c8c3c6da807a79c1496c1acdb9a (diff)
parentf73ae7c510f30675ee3c6065b6411e19ca3ff04c (diff)
downloadCMake-b7810bfb185afc073c3c14ac3af21c6b0ad6a8f5.zip
CMake-b7810bfb185afc073c3c14ac3af21c6b0ad6a8f5.tar.gz
CMake-b7810bfb185afc073c3c14ac3af21c6b0ad6a8f5.tar.bz2
Merge topic 'support_nvhpc_versions_without_isystem' into release-3.27
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()