fix rpath when libdir is not named 'lib'

This commit is contained in:
alemuntoni 2023-01-23 12:54:38 +01:00 committed by Alessandro Muntoni
parent 557104ed7e
commit 6f29486ca7

View File

@ -60,7 +60,7 @@ if (MESHLAB_USE_DEFAULT_BUILD_AND_INSTALL_DIRS) # otherwise, we assume that all
### Install Settings
if (NOT APPLE)
set(CMAKE_INSTALL_RPATH $ORIGIN/../lib/meshlab)
set(CMAKE_INSTALL_RPATH $ORIGIN/../${MESHLAB_LIB_INSTALL_DIR})
else()
SET(CMAKE_INSTALL_RPATH @executable_path/../Frameworks)
endif()