summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorمهدي شينون (Mehdi Chinoune) <mehdi.chinoune@hotmail.com>2023-10-13 08:59:11 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-13 18:04:09 (GMT)
commit44faa3773cc095cd4663ace3421ff9c06b0f8b14 (patch)
tree897c9d4040084b1263b943151f791a4c97691bb6 /Modules
parentc272065e63fe9a690f3537bb5150960d64c3a18f (diff)
downloadCMake-44faa3773cc095cd4663ace3421ff9c06b0f8b14.zip
CMake-44faa3773cc095cd4663ace3421ff9c06b0f8b14.tar.gz
CMake-44faa3773cc095cd4663ace3421ff9c06b0f8b14.tar.bz2
PGI/NVHPC: Remove -Mipa compiler option for 23.3+
`-Mipa` was removed since 23.3. The compiler warns about it: nvfortran-Warning-The option -Mipa has been deprecated and is ignored. See: https://docs.nvidia.com/hpc-sdk/archive/23.9/hpc-sdk-release-notes/index.html#deprecations
Diffstat (limited to 'Modules')
-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()