diff -rupN --no-dereference gmsh-4.5.4-source/CMakeLists.txt gmsh-4.5.4-source-new/CMakeLists.txt
--- gmsh-4.5.4-source/CMakeLists.txt 2020-03-02 11:12:54.074189185 +0100
+++ gmsh-4.5.4-source-new/CMakeLists.txt 2020-03-02 11:12:54.076189194 +0100
@@ -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
@@ -1865,7 +1865,7 @@ endif()
if(ENABLE_BUILD_SHARED OR ENABLE_BUILD_DYNAMIC)
install(TARGETS shared DESTINATION ${GMSH_LIB} OPTIONAL)
# FIXME once we cleanup the installation of the python module
- install(TARGETS shared DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/api OPTIONAL)
+ # install(TARGETS shared DESTINATION ${CMAKE_CURRENT_SOURCE_DIR}/api OPTIONAL)
endif()
if(ENABLE_ONELAB)