CMAKE_SKIP_BUILD_RPATH, messages fail to build forhumble(even native compilation). For example: nix-build -A rosPackages.humble.builtin-interfaces
set(CMAKE_SKIP_INSTALL_RPATH TRUE) 构建期间和安装期间不允许CMake给你加入相关RPATH, 想要追加RPATH, 只需要对这三个变量设置成FALSE。 不过,默认CMake在帮你编译之后,如果你使用了相关动态库,它会在相应的exec文件中增加你相关生成动态库的路径,这样当你每次去执行的时候你不需要每次都LD_LIBRARY_PATH就可以正...
CMake provides options to switch that behaviour of entirely for a build (seehttps://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling). I was searching the Meson docs to see if that is also possible with Meson, but can't find any - I can't even find documentation...