[CMake] Fwd: access absolute path of parent directory

Vinay Raj Hampapur vinayraj.hampapur at gmail.com
Tue Aug 9 19:48:14 EDT 2011


Thanks, John. I'm pretty sure I tried that earlier and it failed. It's
working now!

Cheers,
Vinay

On Tue, Aug 9, 2011 at 1:57 PM, John Drescher <drescherjm at gmail.com> wrote:

> ---------- Forwarded message ----------
> From: John Drescher <drescherjm at gmail.com>
> Date: Tue, Aug 9, 2011 at 4:56 PM
> Subject: Re: [CMake] access absolute path of parent directory
> To: Vinay Raj Hampapur <vinayraj.hampapur at gmail.com>
>
>
> On Tue, Aug 9, 2011 at 4:24 PM, Vinay Raj Hampapur
> <vinayraj.hampapur at gmail.com> wrote:
> > Sure.
> > Here is what I have(I've tried it with double quotes as well):
> >
> > set(Bob     /..)
> > set(Dave       ${Bob}/Dave)
> > set(D_src     ${Dave/Dave.cpp)
> >
> > ... and corresponding add executable command at which point the following
> > error is produced:
> >
> >
>
> You are setting Bob to be the root folder of your system. Remove the /
> in your first set
>
> set(Bob ..)
>
> John
>
>
>
> --
> John M. Drescher
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20110809/accab72f/attachment.htm>


More information about the CMake mailing list