From: maier Date: Tue, 26 Mar 2013 12:48:08 +0000 (+0000) Subject: CMake: Bugfix: Add an INSTALL_NAME_DIR target property to avoid the use of DYLD_LIBRA... X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dce9e393640e5718d0e1d51b9ff11fe84449427a;p=dealii-svn.git CMake: Bugfix: Add an INSTALL_NAME_DIR target property to avoid the use of DYLD_LIBRARY_PATH on Mac OS X git-svn-id: https://svn.dealii.org/trunk@29038 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/source/CMakeLists.txt b/deal.II/source/CMakeLists.txt index e17d345f25..a1c5e0ed7a 100644 --- a/deal.II/source/CMakeLists.txt +++ b/deal.II/source/CMakeLists.txt @@ -70,6 +70,7 @@ FOREACH(build ${DEAL_II_BUILD_TYPES}) LINK_FLAGS "${DEAL_II_SHARED_LINKER_FLAGS_${build}}" COMPILE_DEFINITIONS "${DEAL_II_DEFINITIONS};${DEAL_II_DEFINITIONS_${build}}" COMPILE_FLAGS "${DEAL_II_CXX_FLAGS_${build}}" + INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${DEAL_II_LIBRARY_RELDIR}" ) TARGET_LINK_LIBRARIES(${DEAL_II_BASE_NAME}${DEAL_II_${build}_SUFFIX}