adjust the path in the installed dynamic libraries on MacOSX via INSTALL_NAME_DIR.

This commit is contained in:
Vadim Pisarevsky 2010-07-07 15:24:21 +00:00
parent 7d006e368e
commit 609ad4e409
2 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,7 @@ macro(define_opencv_module name)
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/"
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
)
# Add the required libraries for linking:

View File

@ -276,6 +276,7 @@ set_target_properties(${the_target} PROPERTIES
DEBUG_POSTFIX "${OPENCV_DEBUG_POSTFIX}"
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib/"
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin/"
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
LINK_INTERFACE_LIBRARIES ""
)