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...
if(BUILD_SHARED_LIBS) #use, i.e. don't skip the full RPATH for the build tree set(CMAKE_SKIP_BUILD_RPATHFALSE) #when building, don't use the install RPATH already #(but later on when installing) set(CMAKE_BUILD_WITH_INSTALL_RPATHFALSE) ...
I'm running Conan 1.9.2 on MacOS. After a lot of fun with RPATH handling, I eventually found that the conan documentation is missing a single setting which makes everything just work: set(CMAKE_BUILD_WITH_INSTALL_RPATH ON) This is requir...
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...
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}\")\...
Once I comment out theCMAKE_SKIP_RPATHinconanbuildinfo.cmake. this app runs like a charm! When I look at mysfmltestapp's rpaths I see the following: $ otool -l sfmltest | grep LC_RPATH -A2 cmd LC_RPATH cmdsize 120 path /Users/cpbotha/.conan/data/sfml/2.3.2/cpbotha/stable/packag...