File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,18 @@ OPTION (MSGPACK_CXX11 "Using c++11 compiler" OFF)
1919OPTION (MSGPACK_32BIT "32bit compile" OFF )
2020OPTION (MSGPACK_BOOST "Using boost libraries" OFF )
2121
22+ IF (APPLE )
23+ SET (CMAKE_MACOSX_RPATH ON )
24+ SET (CMAKE_SKIP_BUILD_RPATH FALSE )
25+ SET (CMAKE_BUILD_WITH_INSTALL_RPATH FALSE )
26+ SET (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX} /lib" )
27+ SET (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE )
28+ LIST (FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX} /lib" isSystemDir)
29+ IF ("${isSystemDir} " STREQUAL "-1" )
30+ SET (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX} /lib" )
31+ ENDIF ()
32+ ENDIF ()
33+
2234IF (MSGPACK_CXX11)
2335 IF ("${CMAKE_CXX_COMPILER_ID} " STREQUAL "GNU" )
2436 SET (CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS} " )
You can’t perform that action at this time.
0 commit comments