Ver código fonte

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
مهدي شينون (Mehdi Chinoune) 2 anos atrás
pai
commit
44faa3773c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      Modules/Compiler/PGI.cmake

+ 1 - 1
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()