From: Antonin Descampe Date: Fri, 19 Sep 2014 09:30:12 +0000 (+0000) Subject: fixes install name id on OSX builds (fixes issue 367) X-Git-Tag: wg1n6848~33 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b9a247b559e62e55f5561624cf4a19aee3c8afdc;p=openjpeg fixes install name id on OSX builds (fixes issue 367) --- 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)