[CMake] How to tell an executable where to look for libraries it depends on

2014-01-23 Thread Lucas Soltic
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:

Re: [CMake] How to tell an executable where to look for libraries it depends on

2014-01-23 Thread Petr Kmoch
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,