diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2018-04-30 18:56:25 +0200 |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2018-06-06 17:22:41 +0200 |
commit | 66ea1a3795f76ce921bc48f82ff228bcceed4524 (patch) | |
tree | 48d060e55c547dc5d06fcccba7186bb5beb4fc13 /Modules/Compiler/PGI.cmake | |
parent | c1f5a44b28047cde74e2fb10e8d68e314272f699 (diff) | |
download | cmake-66ea1a3795f76ce921bc48f82ff228bcceed4524.tar.gz |
LINK_OPTIONS: Add support of "LINKER:" prefix
Diffstat (limited to 'Modules/Compiler/PGI.cmake')
-rw-r--r-- | Modules/Compiler/PGI.cmake | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/Compiler/PGI.cmake b/Modules/Compiler/PGI.cmake index d5a57ee1cf..4f8b90b13b 100644 --- a/Modules/Compiler/PGI.cmake +++ b/Modules/Compiler/PGI.cmake @@ -25,6 +25,9 @@ macro(__compiler_pgi lang) string(APPEND CMAKE_${lang}_FLAGS_INIT " -Bdynamic") endif() + set(CMAKE_${lang}_LINKER_WRAPPER_FLAG "-Wl,") + set(CMAKE_${lang}_LINKER_WRAPPER_FLAG ",") + 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)) set(_CMAKE_${lang}_IPO_MAY_BE_SUPPORTED_BY_COMPILER YES) |