summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Apple-PGI.cmake
blob: a68c08dea77f99953df31a14335e5164410ba7ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Distributed under the OSI-approved BSD 3-Clause License.  See accompanying
# file Copyright.txt or https://cmake.org/licensing for details.

# This module is shared by multiple languages; use include blocker.
if(__APPLE_COMPILER_PGI)
  return()
endif()
set(__APPLE_COMPILER_PGI 1)

macro(__apple_compiler_pgi lang)
  set(CMAKE_${lang}_OSX_COMPATIBILITY_VERSION_FLAG "-Wl,-compatibility_version,")
  set(CMAKE_${lang}_OSX_CURRENT_VERSION_FLAG "-Wl,-current_version,")
  set(CMAKE_SHARED_LIBRARY_SONAME_${lang}_FLAG "-Wl,-install_name")
endmacro()