[CMake] Fwd: access absolute path of parent directory
John Drescher
drescherjm at gmail.com
Tue Aug 9 16:57:12 EDT 2011
---------- 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
More information about the CMake
mailing list