Skip to content

Commit

Permalink
cmake: setting CMAKE_INSTALL_NAME_DIR to install dir
Browse files Browse the repository at this point in the history
  • Loading branch information
madsbk committed Nov 23, 2018
1 parent baa9fd9 commit 4177648
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ find_package(OpenCV 3)
set_package_properties(OpenCV PROPERTIES DESCRIPTION "Open Source Computer Vision" URL "opencv.org")
set_package_properties(OpenCV PROPERTIES TYPE RECOMMENDED PURPOSE "Enables the OpenCV extended method")

# We do not want MacOSX to set "@path" when installing because of the MacOSX wheel tool `delocate`.
# Instead, we set the installation path manually.
set(CMAKE_INSTALL_NAME_DIR ${CMAKE_INSTALL_PREFIX}/${LIBDIR})

#####################
# Bohrium components
Expand Down

0 comments on commit 4177648

Please sign in to comment.