mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
adjust the path in the installed dynamic libraries on MacOSX via INSTALL_NAME_DIR.
This commit is contained in:
parent
7d006e368e
commit
609ad4e409
@ -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:
|
||||
|
@ -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 ""
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user