Just to confirm, theset(CMAKE_BUILD_WITH_INSTALL_RPATH ON)will change the rpaths from the build folders to the install folders, right? So you are usingcmake install. The rpaths even withset(CMAKE_BUILD_WITH_INSTALL_RPATH ON)are absolute to the installed folders and do not contain@executab...
with open(os.path.join(root_dir, "cmake", "SetInstallRpath.cmake"), 'w') as fout: fout.write("SET(CMAKE_INSTALL_RPATH \"{}\")\n".format( ";".join(site_locations).replace("\\", "/"))); #fout.write("MESSAGE(STATUS \"CMAKE_INSTALL_RPATH: ${CMAKE_INSTALL_RPATH}\")\...
Hi, According to the docs conan_basic_setup() sets CMAKE_SKIP_RPATH 1 on macOS. However, otool -L my_installed_lib.dylib gives the following output: @rpath/libmy_installed_lib.dylib (compatibility version 0.0.0, current version 0.0.0) Wh...
DLT_USE_QT_RPATH variable is meant to set RPATH only when set to ON, not regardless of its value. Update cmakelists.txt to set RPATH only if requested … Verified 8bbbac1 alexmucde added the enhancement label Jan 25, 2023 alexmucde added this to the Release v2.24.0 milestone Ja...
false, "mergeConfigurations": false, "compilerPathIsExplicit": false, "configurationProvider": "ms-vscode.cmake-tools", "browse": { "path": [ "${workspaceFolder}/**" ], "limitSymbolsToIncludedHeaders": true } } Custom browse configuration: { "browsePath": [ "XXXX/obj/CMakeFiles", ....
Sometimes C/C++ projects want to install shared libraries to unusual locations relative to the installation root, for example$INSTALL_PREFIX/lib/project_specific_subdirectory. In these cases, the build scripts need to set the rpath to a path relative to the executable's path, for example$ORIGIN...
compilerPathIsExplicit": false, "configurationProvider": "ms-vscode.cmake-tools", "browse": { "path": [ "${workspaceFolder}/**" ], "limitSymbolsToIncludedHeaders": true } } Custom browse configuration: { "browsePath": [] } Translation Unit Mappings: [ D:\gitrepo\somesourcefile.c ]:...
DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo' '-DCMAKE_VERBOSE_MAKEFILE:BOOL=ON' '-DCMAKE_INSTALL_RPATH_USE_LINK_PATH:BOOL=FALSE' '-DCMAKE_INSTALL_RPATH:STRING=/blues/gpfs/home/ajstewart/spack/opt/spack/linux-centos6-x86_64/gcc-6.1.0/jasper-2.0.14-6ppf3l6ewjd5v3mzeb2wwk5viup6iuvp/...
Note that it's looking for@rpath/libsfml-audio.2.3.dylib-- Ideally I would want that@rpathto be substituted by conan with the path of the relevant SFML package installlation. Once I comment out theCMAKE_SKIP_RPATHinconanbuildinfo.cmake. this app runs like a charm!