ソースを参照

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

Signed-off-by: Kim Kulling <[email protected]>
Kim Kulling 11 年 前
コミット
34882177a9
1 ファイル変更5 行追加0 行削除
  1. 5 0
      code/CMakeLists.txt

+ 5 - 0
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)