From 295a9abbdcfb86e77cf6afcd1e7f268a7f25670c Mon Sep 17 00:00:00 2001 From: Kim Kulling <kimkulling@users.noreply.github.com> Date: Mon, 10 Aug 2015 13:13:01 +0200 Subject: [PATCH] Update CMakeLists.txt Fix for https://github.com/assimp/assimp/issues/166 --- code/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/code/CMakeLists.txt b/code/CMakeLists.txt index c3302ee98..351ce8da2 100644 --- a/code/CMakeLists.txt +++ b/code/CMakeLists.txt @@ -656,6 +656,11 @@ if ( MSVC ) ADD_DEFINITIONS( -D_CRT_SECURE_NO_WARNINGS ) endif ( MSVC ) +if (APPLE) + SET_TARGET_PROPERTIES( assimp PROPERTIES + INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${LIB_INSTALL_DIR}" + ) +endif() if (UNZIP_FOUND) SET (unzip_compile_SRCS "") else (UNZIP_FOUND)