summaryrefslogtreecommitdiff
path: root/library/CMakeLists.txt
diff options
context:
space:
mode:
authorTimothy Collett2012-09-13 14:58:52 -0400
committerTimothy Collett2012-09-13 14:58:52 -0400
commit24b93ea61fd1cb6ad69c2e3beab182f5f60646c7 (patch)
tree66f161b8bc75a42dbf256c1d5dfeb1b082bd240e /library/CMakeLists.txt
parentccefd02ee3921a84a4a053bb163968530b1b2346 (diff)
downloaddfhack-24b93ea61fd1cb6ad69c2e3beab182f5f60646c7.tar.gz
dfhack-24b93ea61fd1cb6ad69c2e3beab182f5f60646c7.tar.bz2
dfhack-24b93ea61fd1cb6ad69c2e3beab182f5f60646c7.tar.xz
Library location fixing script
Diffstat (limited to 'library/CMakeLists.txt')
-rw-r--r--library/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index 109a97e7..536f4d34 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -286,6 +286,10 @@ SET_TARGET_PROPERTIES(dfhack PROPERTIES LINK_INTERFACE_LIBRARIES "")
TARGET_LINK_LIBRARIES(dfhack-client protobuf-lite clsocket)
TARGET_LINK_LIBRARIES(dfhack-run dfhack-client)
+if(APPLE)
+ add_custom_command(TARGET dfhack-run COMMAND ${dfhack_SOURCE_DIR}/package/darwin/fix-libs.sh WORKING_DIRECTORY ../ COMMENT "Fixing library dependencies...")
+endif()
+
IF(UNIX)
if (APPLE)
install(PROGRAMS ${dfhack_SOURCE_DIR}/package/darwin/dfhack