CMake/Modules/Platform/Darwin-xlc.cmake

9 lines
320 B
CMake
Raw Normal View History

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)