Commit fa22e86a authored by Ghislain MARY's avatar Ghislain MARY

Add RPATH on Mac OS X when building the desktop config.

parent 9f287c82
......@@ -265,6 +265,7 @@ list(APPEND LINPHONE_BUILDER_EP_VARS
)
if(APPLE)
list(APPEND LINPHONE_BUILDER_EP_VARS
CMAKE_MACOSX_RPATH:BOOL
CMAKE_OSX_ARCHITECTURES:STRING
CMAKE_OSX_DEPLOYMENT_TARGET:STRING
)
......
......@@ -60,6 +60,7 @@ if(APPLE)
set(LINPHONE_BUILDER_CPPFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_OBJCFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
set(LINPHONE_BUILDER_LDFLAGS "-mmacosx-version-min=${CMAKE_OSX_DEPLOYMENT_TARGET} -arch ${CMAKE_OSX_ARCHITECTURES}")
set(CMAKE_MACOSX_RPATH 1)
endif(APPLE)
# Adjust PKG_CONFIG_PATH to include install directory
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment