shithub: dumb

Download patch

ref: 3a9b6c7cb585c6b1328a97a8befe2f979a1b009d
parent: 3a25c206f5610e2626926be036b1ffaa8afab5ef
author: Andrew Thompson <andrew@hijacked.us>
date: Mon Jan 13 21:54:22 EST 2014

Set the dylib install name on OSX

--- a/dumb/cmake/CMakeLists.txt
+++ b/dumb/cmake/CMakeLists.txt
@@ -8,6 +8,11 @@
 set(CMAKE_C_FLAGS_DEBUG "${COMMON_FLAGS} -ggdb -DDEBUGMODE")
 set(CMAKE_C_FLAGS_RELEASE "${COMMON_FLAGS} -ffast-math -O2")
 
+# Make sure the dylib install name path is set on OSX so you can include dumb in app bundles
+IF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+    set_target_properties(dumb PROPERTIES INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/lib)
+ENDIF(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
+
 link_directories(${CMAKE_CURRENT_BINARY_DIR})
 include_directories(../include/)