<div dir="ltr">Hi,<div><br></div><div>it would be nice if there were a way to emulate rpath under Windows. As far as I can see there are two possible approaches:</div><div>- Generate a shell script which sets PATH</div><div>- Generate a manifest for the application and a manifest for the dependencies.</div><div><a href="http://sourceforge.net/p/mingw-w64/mailman/message/30019971/">http://sourceforge.net/p/mingw-w64/mailman/message/30019971/</a> has an example of how to do it.<br></div><div><br></div><div>To generate either the script or the manifest, all paths to the all required libraries need to be queried for an executable target. Then those paths could be put into the script/manifest with e.g. coonfigure_file. Those paths correspond to those used to set the rpath. This functionality has been suggested in this issue: <a href="http://www.cmake.org/Bug/bug_relationship_graph.php?bug_id=10449">http://www.cmake.org/Bug/bug_relationship_graph.php?bug_id=10449</a></div><div>The issue has been suspended with a comment that this idea, needs more discussion on the mailing list first.</div><div>Of course it would be even nicer if cmake could generate the script or the manifest and not just provide the mechanism to query the path.</div><div><br></div><div>Roland</div><div><br clear="all"><div><br></div>-- <br>ORNL/UT Center for Molecular Biophysics <a href="http://cmb.ornl.gov">cmb.ornl.gov</a><br>865-241-1537, ORNL PO BOX 2008 MS6309
</div></div>