<div dir="ltr">Ah, cool. That&#39;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">&lt;<a href="mailto:andreas.stahl@tu-dresden.de" target="_blank">andreas.stahl@tu-dresden.de</a>&gt;</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 &quot;@loader_path;@loader_path/../lib&quot;<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>
&gt; Hmm. I&#39;ve just tried this but it didn&#39;t work for me. The &quot;Runpath Search Path&quot; field is still blank.<br>
&gt;<br>
&gt; 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&#39;t get it to work.<br>
&gt;<br>
&gt; Darrell<br>
&gt;<br>
&gt;<br>
&gt; On 20 February 2013 00:17, Alexey Petruchik &lt;<a href="mailto:i100500@gmail.com">i100500@gmail.com</a>&gt; wrote:<br>
&gt; Hi, I&#39;m doing this by adding:<br>
&gt; set(CMAKE_XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS &quot;@executable_path/../Frameworks&quot;)<br>
&gt; to my CMakeLists.txt. Not sure that this is the way it should be done but at least it works ;)<br>
&gt;<br>
&gt; Regards, Alexey<br>
&gt;<br>
&gt;<br>
&gt; On Wed, Feb 20, 2013 at 1:13 AM, Darrell Blake &lt;<a href="mailto:darrell.blake@gmail.com">darrell.blake@gmail.com</a>&gt; wrote:<br>
&gt; Is there any way to set the XCode &quot;Runtime Search Path&quot; linker setting? I&#39;ve got a framework that was built using @rpath so I&#39;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>

&gt;<br>
&gt; Darrell<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; 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>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <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>