Thanks, John. I&#39;m pretty sure I tried that earlier and it failed. It&#39;s working now!<br><br>Cheers,<br>Vinay<br><br><div class="gmail_quote">On Tue, Aug 9, 2011 at 1:57 PM, John Drescher <span dir="ltr">&lt;<a href="mailto:drescherjm@gmail.com">drescherjm@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></div><div class="h5">---------- Forwarded message ----------<br>
From: John Drescher &lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;<br>
Date: Tue, Aug 9, 2011 at 4:56 PM<br>
Subject: Re: [CMake] access absolute path of parent directory<br>
To: Vinay Raj Hampapur &lt;<a href="mailto:vinayraj.hampapur@gmail.com">vinayraj.hampapur@gmail.com</a>&gt;<br>
<br>
<br>
On Tue, Aug 9, 2011 at 4:24 PM, Vinay Raj Hampapur<br>
&lt;<a href="mailto:vinayraj.hampapur@gmail.com">vinayraj.hampapur@gmail.com</a>&gt; wrote:<br>
&gt; Sure.<br>
&gt; Here is what I have(I&#39;ve tried it with double quotes as well):<br>
&gt;<br>
&gt; set(Bob     /..)<br>
&gt; set(Dave       ${Bob}/Dave)<br>
&gt; set(D_src     ${Dave/Dave.cpp)<br>
&gt;<br>
&gt; ... and corresponding add executable command at which point the following<br>
&gt; error is produced:<br>
&gt;<br>
&gt;<br>
<br>
You are setting Bob to be the root folder of your system. Remove the /<br>
in your first set<br>
<br>
set(Bob ..)<br>
<br>
John<br>
<br>
<br>
<br>
</div></div>--<br>
John M. Drescher<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>