Re: [CMake] Fwd: access absolute path of parent directory

2011-08-09 Thread Vinay Raj Hampapur
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  wrote:

> -- Forwarded message --
> From: John Drescher 
> Date: Tue, Aug 9, 2011 at 4:56 PM
> Subject: Re: [CMake] access absolute path of parent directory
> To: Vinay Raj Hampapur 
>
>
> On Tue, Aug 9, 2011 at 4:24 PM, Vinay Raj Hampapur
>  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
>
___
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

[CMake] Fwd: access absolute path of parent directory

2011-08-09 Thread John Drescher
-- Forwarded message --
From: John Drescher 
Date: Tue, Aug 9, 2011 at 4:56 PM
Subject: Re: [CMake] access absolute path of parent directory
To: Vinay Raj Hampapur 


On Tue, Aug 9, 2011 at 4:24 PM, Vinay Raj Hampapur
 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