From 6f29486ca707cc6b6b0094c1dcf8a34b7dc9f392 Mon Sep 17 00:00:00 2001 From: alemuntoni Date: Mon, 23 Jan 2023 12:54:38 +0100 Subject: [PATCH] fix rpath when libdir is not named 'lib' --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index a446d4d3e..8eb53d613 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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()