$NetBSD: patch-src_cmake_compiler.cmake,v 1.3 2024/06/26 16:26:24 adam Exp $ Disable custom rpath handling that conflicts with pkgsrc. --- src/cmake/compiler.cmake.orig 2024-06-01 19:59:05.000000000 +0000 +++ src/cmake/compiler.cmake @@ -632,27 +632,6 @@ if (DEFINED ENV{${PROJECT_NAME}_CI}) endif () -########################################################################### -# Rpath handling at the install step -# -# set (MACOSX_RPATH ON) -if (CMAKE_SKIP_RPATH) - # We need to disallow the user from truly setting CMAKE_SKIP_RPATH, since - # we want to run the generated executables from the build tree in order to - # generate the manual page documentation. However, we make sure the - # install rpath is unset so that the install tree is still free of rpaths - # for linux packaging purposes. - set (CMAKE_SKIP_RPATH FALSE) - unset (CMAKE_INSTALL_RPATH) -else () - if (NOT CMAKE_INSTALL_RPATH) - set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_FULL_LIBDIR}") - endif () - # add the automatically determined parts of the RPATH that - # point to directories outside the build tree to the install RPATH - set (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE) - message (VERBOSE "CMAKE_INSTALL_RPATH = ${CMAKE_INSTALL_RPATH}") -endif () ###########################################################################