The solution in the article below seems promising:

 

http://www.blaenkdenum.com/notes/cmake/#rpath

 

set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--disable-new-dtags")
set (CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
set (CMAKE_INSTALL_RPATH "$ORIGIN")

相关文章:

  • 2022-03-06
  • 2022-12-23
  • 2021-12-03
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-10-04
猜你喜欢
  • 2021-09-26
  • 2021-11-28
  • 2021-08-17
  • 2021-12-13
  • 2022-02-05
  • 2022-12-23
  • 2021-07-17
相关资源
相似解决方案