cmake/Modules/Platform/Apple-PGI.cmake

12 lines
492 B
CMake
Raw Normal View History

2017-04-14 19:02:05 +02:00
# 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.
2018-08-09 18:06:22 +02:00
include_guard()
2017-04-14 19:02:05 +02:00
2018-08-09 18:06:22 +02:00
macro(__apple_compiler_pgi lang)
2017-04-14 19:02:05 +02:00
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()