Creating binary with CMake removes runtime path

后端 未结 3 1988
小蘑菇
小蘑菇 2021-02-04 01:19

I am using CMake to build a program on linux. The program compiles successfully and runs from the project build directory. The program is linked with a custom library in the dir

3条回答
  •  攒了一身酷
    2021-02-04 01:47

    You should look at set_target_properties command and the property BUILD_WITH_INSTALL_RPATH

    http://www.cmake.org/cmake/help/cmake-2-8-docs.html#command:set_target_properties

提交回复
热议问题