<div dir="ltr">Ah, cool. That's much better. Cheers.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 February 2013 10:54, Andreas Stahl <span dir="ltr"><<a href="mailto:andreas.stahl@tu-dresden.de" target="_blank">andreas.stahl@tu-dresden.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello Darrell,<br>
<br>
you can also set it as a property per target<br>
<br>
set_target_properties(MyExecutable<br>
PROPERTIES<br>
XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@loader_path;@loader_path/../lib"<br>
)<br>
<br>
This should work, but I think CMake could use some facilities to handle the executables runpath search path on os x and the DT_RPATH / DT_RUNPATH in linux.<br>
best regards,<br>
Andreas<br>
<br>
Am 20.02.2013 um 11:39 schrieb Darrell Blake:<br>
<div class="HOEnZb"><div class="h5"><br>
> Hmm. I've just tried this but it didn't work for me. The "Runpath Search Path" field is still blank.<br>
><br>
> Do I have to do things in a particular order to get it to work? Though I have tried moving it around and still couldn't get it to work.<br>
><br>
> Darrell<br>
><br>
><br>
> On 20 February 2013 00:17, Alexey Petruchik <<a href="mailto:i100500@gmail.com">i100500@gmail.com</a>> wrote:<br>
> Hi, I'm doing this by adding:<br>
> set(CMAKE_XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS "@executable_path/../Frameworks")<br>
> to my CMakeLists.txt. Not sure that this is the way it should be done but at least it works ;)<br>
><br>
> Regards, Alexey<br>
><br>
><br>
> On Wed, Feb 20, 2013 at 1:13 AM, Darrell Blake <<a href="mailto:darrell.blake@gmail.com">darrell.blake@gmail.com</a>> wrote:<br>
> Is there any way to set the XCode "Runtime Search Path" linker setting? I've got a framework that was built using @rpath so I'm having to set the Runtime Search Path setting to @executable_path/../Frameworks so it can be found. I just wondered if there was any way to set it from CMake.<br>
><br>
> Darrell<br>
><br>
><br>
> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
><br>
><br>
> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
><br>
> Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>
</div></div><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br></div>