Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

mac build (cmake): rpath and LIB_DIR should be the bundle Frameworks dir

  • Loading branch information...
commit 0cba13959c6566eda0df9f2b1658ad6141c63189 1 parent 1815af5
@bradallred bradallred authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 CMakeLists.txt
View
4 CMakeLists.txt
@@ -108,12 +108,14 @@ elseif (${LAYOUT} MATCHES "opt")
SET_PATH( MENU_DIR ${CMAKE_INSTALL_PREFIX}/share/applications )
SET_PATH( EXAMPLE_CONF_DIR ${SYSCONF_DIR} )
else (${LAYOUT} MATCHES "bundle") # Mac or iOS
+ SET(CMAKE_INSTALL_RPATH @loader_path/../Frameworks)
+ SET(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
# most paths are irrelevant since the items will be bundled with application
SET_PATH( BIN_DIR /Applications )
# TODO: these should be copied during build and not install.
- SET_PATH( LIB_DIR "${BIN_DIR}/${PROJECT_NAME}.app/Contents/Frameworks" )
SET_PATH( PLUGIN_DIR "${BIN_DIR}/${PROJECT_NAME}.app/Contents/Plugins" )
SET_PATH( DOC_DIR "${BIN_DIR}/${PROJECT_NAME}.app/Contents/Resources" )
+ SET_PATH( LIB_DIR @loader_path/../Frameworks )
endif (${LAYOUT} MATCHES "home")
# check if this is a release version
Please sign in to comment.
Something went wrong with that request. Please try again.