--- config/VIGRA_ADD_NUMPY_MODULE.cmake.orig	2011-01-26 10:26:08.000000000 -0500
+++ config/VIGRA_ADD_NUMPY_MODULE.cmake	2011-01-26 10:27:02.000000000 -0500
@@ -78,7 +78,7 @@
         SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}" 
                                                            PREFIX "" SUFFIX  ".pyd")
     ELSEIF(MACOSX)
-        SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}" PREFIX "" SUFFIX ".so")
+        SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}" PREFIX "" SUFFIX ".so" INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${VIGRANUMPY_INSTALL_DIR}/vigra")
     ELSE()
         SET_TARGET_PROPERTIES(${TARGET_NAME} PROPERTIES OUTPUT_NAME "${LIBRARY_NAME}" 
                                                            PREFIX "")
