From 34882177a9128019aa76b3a7d7afc76c5bc1a4e3 Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 6 Mar 2014 00:06:19 +0100 Subject: [PATCH] bugfix: install_name should be set to absolute path to installed library in macosx build #226 Signed-off-by: Kim Kulling --- code/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index 7e18f2a75..9d4f39cf2 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -699,6 +699,11 @@ SET_TARGET_PROPERTIES( assimp PROPERTIES SOVERSION ${ASSIMP_SOVERSION} # use full version OUTPUT_NAME assimp${ASSIMP_LIBRARY_SUFFIX} ) + +if (APPLE) + SET_TARGET_PROPERTIES( assimp PROPERTIES INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}") +endif() + # Build against external unzip, or add ../contrib/unzip so # assimp can #include "unzip.h" if (UNZIP_FOUND)