Hi Lucas. There's no portable way to do that, simply because not all systems support something like this (e.g. Windows doesn't ). For Linux, you can look into the various options of handling RPATH (such as BUILD_WITH_INSTALL_RPATH, SKIP_BUILD_RPATH, INSTALL_RPATH etc.).
Petr On Thu, Jan 23, 2014 at 12:56 PM, Lucas Soltic <[email protected]>wrote: > Hello, > > Is there a CMake rule to tell an executable where to look for its dynamic > libraries when running? So that the dependencies are correctly loaded at > runtime. > > Regards, > Lucas SOLTIC > -- > > Powered by www.kitware.com > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Kitware offers various services to support the CMake community. For more > information on each offering, please visit: > > CMake Support: http://cmake.org/cmake/help/support.html > CMake Consulting: http://cmake.org/cmake/help/consulting.html > CMake Training Courses: http://cmake.org/cmake/help/training.html > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake >
-- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
