diff options
author | Brad King <brad.king@kitware.com> | 2023-06-26 13:44:48 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-06-26 13:44:56 (GMT) |
commit | b7810bfb185afc073c3c14ac3af21c6b0ad6a8f5 (patch) | |
tree | 9979054874e45e3cb9dcbe133e57a4ca2cb1cf0f /Modules/Compiler | |
parent | 529b818378843c8c3c6da807a79c1496c1acdb9a (diff) | |
parent | f73ae7c510f30675ee3c6065b6411e19ca3ff04c (diff) | |
download | CMake-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.cmake | 4 |
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() |