summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonin Descampe <antonin@gmail.com>2014-09-19 09:30:12 +0000
committerAntonin Descampe <antonin@gmail.com>2014-09-19 09:30:12 +0000
commitb9a247b559e62e55f5561624cf4a19aee3c8afdc (patch)
tree88a522aab2607d200fe3ad0bfd24599bb05b4516
parent50a205d20f25d26e77299f5bf8e62e1aa038d2b7 (diff)
fixes install name id on OSX builds (fixes issue 367)
-rw-r--r--CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 229da1e1..5f83362b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -146,6 +146,10 @@ if(NOT OPENJPEG_INSTALL_PACKAGE_DIR)
set(OPENJPEG_INSTALL_PACKAGE_DIR "${OPENJPEG_INSTALL_LIB_DIR}/${OPENJPEG_INSTALL_SUBDIR}")
endif()
+if (APPLE)
+ list(APPEND OPENJPEG_LIBRARY_PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${OPENJPEG_INSTALL_LIB_DIR}")
+endif()
+
#-----------------------------------------------------------------------------
# Big endian test:
include (${CMAKE_ROOT}/Modules/TestBigEndian.cmake)