diff -rupN --no-dereference gmsh-4.5.6-source/CMakeLists.txt gmsh-4.5.6-source-new/CMakeLists.txt
--- gmsh-4.5.6-source/CMakeLists.txt 2020-04-06 23:51:16.513659344 +0200
+++ gmsh-4.5.6-source-new/CMakeLists.txt 2020-04-06 23:51:16.516659350 +0200
@@ -253,7 +253,7 @@ else()
# when building, don't use the install RPATH already (but later on when
# installing)
set(CMAKE_BUILD_WITH_INSTALL_RPATH FALSE)
- set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
+ set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_LIBDIR}")
# add the automatically determined parts of the RPATH which point to
# directories outside the build tree to the install RPATH