Thanks, John. I'm pretty sure I tried that earlier and it failed. It'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"><<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>></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 <<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>><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 <<a href="mailto:vinayraj.hampapur@gmail.com">vinayraj.hampapur@gmail.com</a>><br>
<br>
<br>
On Tue, Aug 9, 2011 at 4:24 PM, Vinay Raj Hampapur<br>
<<a href="mailto:vinayraj.hampapur@gmail.com">vinayraj.hampapur@gmail.com</a>> wrote:<br>
> Sure.<br>
> Here is what I have(I've tried it with double quotes as well):<br>
><br>
> set(Bob /..)<br>
> set(Dave ${Bob}/Dave)<br>
> set(D_src ${Dave/Dave.cpp)<br>
><br>
> ... and corresponding add executable command at which point the following<br>
> error is produced:<br>
><br>
><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>