bugfix: install_name should be set to absolute path to installed library in macosx build #226

Signed-off-by: Kim Kulling <kim.kulling@googlemail.com>
pull/232/head
Kim Kulling 2014-03-06 00:06:19 +01:00
parent ec2b8dd3fa
commit 34882177a9
1 changed files with 5 additions and 0 deletions

View File

@ -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)