summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-10-16 14:36:26 (GMT)
committerKitware Robot <kwrobot@kitware.com>2023-10-16 14:37:24 (GMT)
commitb27dcf293ef0be47c67b67b95392b020ff78a543 (patch)
treee62bb7fae057080e1e98376ed98c9fbacebb7335
parentd624435096bd5e434a4204c368dc778cdd541487 (diff)
parent44faa3773cc095cd4663ace3421ff9c06b0f8b14 (diff)
downloadCMake-b27dcf293ef0be47c67b67b95392b020ff78a543.zip
CMake-b27dcf293ef0be47c67b67b95392b020ff78a543.tar.gz
CMake-b27dcf293ef0be47c67b67b95392b020ff78a543.tar.bz2
Merge topic 'nvfortran-mipa' into release-3.28
44faa3773c PGI/NVHPC: Remove -Mipa compiler option for 23.3+ Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !8874
-rw-r--r--Modules/Compiler/PGI.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/PGI.cmake b/Modules/Compiler/PGI.cmake
index d111be9..b037fbc 100644
--- a/Modules/Compiler/PGI.cmake
+++ b/Modules/Compiler/PGI.cmake
@@ -29,7 +29,7 @@ macro(__compiler_pgi lang)
set(CMAKE_${lang}_LINKER_WRAPPER_FLAG_SEP ",")
set(_CMAKE_${lang}_IPO_SUPPORTED_BY_CMAKE YES)
- if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL ppc64le AND (NOT CMAKE_HOST_WIN32 OR CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 16.3))
+ if(NOT CMAKE_SYSTEM_PROCESSOR STREQUAL ppc64le AND (NOT CMAKE_HOST_WIN32 OR CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 16.3) AND CMAKE_${lang}_COMPILER_VERSION VERSION_LESS 23.3)
set(_CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES)
set(CMAKE_${lang}_COMPILE_OPTIONS_IPO "-Mipa=fast,inline")
else()