summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Darwin-xlc.cmake
blob: ebe099b823563a511f5892df8057fd06773acb5c (plain)
1
2
3
4
5
6
7
8
SET(CMAKE_SHARED_LIBRARY_CREATE_C_FLAGS "-qmkshrobj")
SET(CMAKE_SHARED_MODULE_CREATE_C_FLAGS "-bundle")

IF(CMAKE_GENERATOR_NEW)
  # Enable shared library versioning.
  SET(CMAKE_SHARED_LIBRARY_SONAME_C_FLAG "-Wl,-install_name")
  SET(CMAKE_SHARED_LIBRARY_SONAME_CXX_FLAG "-Wl,-install_name")
ENDIF(CMAKE_GENERATOR_NEW)