Thanks, Andreas and Yuri!
2008/7/7, Andreas Pakulat <[EMAIL PROTECTED]>:
> On 07.07.08 16:07:54, Alexander Bubnov wrote:
> > It is clear. I just would like to know a similiar command of cmake.
> > ...it is a pity there is no one.
>
>
> You're misunderstanding. Its not possible for any given proc
On 07.07.08 16:07:54, Alexander Bubnov wrote:
> It is clear. I just would like to know a similiar command of cmake.
> ...it is a pity there is no one.
You're misunderstanding. Its not possible for any given process (or
program) to modify the environment of its parent process. So if you run
an appl
On Monday 07 July 2008 16:07:54 Alexander Bubnov wrote:
> It is clear. I just would like to know a similiar command of cmake.
> ...it is a pity there is no one.
You can export variables for child processes, but not for parent. Look for
pkg-config: rather than exporting something, it just prints it
It is clear. I just would like to know a similiar command of cmake.
...it is a pity there is no one.
Thanks.
2008/7/7, Timenkov Yuri <[EMAIL PROTECTED]>:
>
>
> On Monday 07 July 2008 15:53:00 Alexander Bubnov wrote:
> > Hello!
> >
> > Below simple example to clarify the problem.
> >
> > My
On Monday 07 July 2008 15:53:00 Alexander Bubnov wrote:
> Hello!
>
> Below simple example to clarify the problem.
>
> My CMakeLists.txt:
>
> cmake_minimum_required(VERSION 2.6)
>
> set(ENV{MYVAR} "SOME VALUE")
> message("the value of MYVAR: " $ENV{MYVAR})
>
> the output:
>
> the value of MYVAR: S
Hello!
Below simple example to clarify the problem.
My CMakeLists.txt:
cmake_minimum_required(VERSION 2.6)
set(ENV{MYVAR} "SOME VALUE")
message("the value of MYVAR: " $ENV{MYVAR})
the output:
the value of MYVAR: SOME VALUE
-- Configuring done
-- Generating done
-- Build files have been writte