<div dir="ltr">I think I&#39;ve just answered my own question. It looks like it has to be in the root CMakeLists.txt. If I put it in one included from add_subdirectory() it doesn&#39;t work but in the root CMakeLists.txt it does.</div>
<div class="gmail_extra"><br><br><div class="gmail_quote">On 20 February 2013 10:39, Darrell Blake <span dir="ltr">&lt;<a href="mailto:darrell.blake@gmail.com" target="_blank">darrell.blake@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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.<div>
<br></div><div>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.</div><span class="HOEnZb"><font color="#888888">
<div><br></div><div>Darrell</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On 20 February 2013 00:17, Alexey Petruchik <span dir="ltr">&lt;<a href="mailto:i100500@gmail.com" target="_blank">i100500@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr"><div dir="ltr" style="font-family:arial,sans-serif;font-size:13px">Hi, I&#39;m doing this by adding:<div>

set(CMAKE_XCODE_ATTRIBUTE_LD_RUNPATH_SEARCH_PATHS &quot;@executable_path/../Frameworks&quot;)<br><div>
to my CMakeLists.txt. Not sure that this is the way it should be done but at least it works ;)</div><div><br>Regards, Alexey</div></div></div><div style="margin:2px 0px 0px;font-family:arial,sans-serif;font-size:13px">
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div>On Wed, Feb 20, 2013 at 1:13 AM, Darrell Blake <span dir="ltr">&lt;<a href="mailto:darrell.blake@gmail.com" target="_blank">darrell.blake@gmail.com</a>&gt;</span> wrote:<br>


</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div dir="ltr">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.<span><font color="#888888"><div>



<br></div><div>Darrell</div><div><br></div></font></span></div>
<br></div><div>--<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></div></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>