$NetBSD: patch-src_cmake_compiler.cmake,v 1.2 2023/10/15 19:52:09 ryoon Exp $ Disable custom rpath handling that conflicts with pkgsrc. --- src/cmake/compiler.cmake.orig 2023-10-02 01:17:00.000000000 +0000 +++ src/cmake/compiler.cmake @@ -600,30 +600,6 @@ 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 () - - - -########################################################################### # Macro to install targets to the appropriate locations. Use this instead # of the install(TARGETS ...) signature. Note that it adds it to the # export targets list for when we generate config files.