[cmake-developers] Patches to add XXX_RUNTIME_LIBRARIES and XXX_RUNTIME_LIBRARY_DIRS to FindZLIB.cmake, FindXml2.cmake, and FindXslt.cmake
Brad King
brad.king at kitware.com
Thu May 26 10:21:09 EDT 2011
On 05/25/2011 04:44 PM, Rick Yorgason wrote:
> But now you install the program and try to run it. Crash! No DLLs
> found, because on Windows it's standard to install the DLLs into the
> same directory as the .exe.
[snip]
> our only option is to copy the DLLs into the build dirs.
We typically use launcher scripts/tools that add the right thing to the
PATH and then invoke the real program. This is often done on UNIX systems
too because an application that comes as a binary in a tarball and uses
shared libraries needs a launcher to set LD_LIBRARY_PATH before running
the real binary. Otherwise the tree is not relocatable.
-Brad
More information about the cmake-developers
mailing list