Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Alexander Bubnov
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

Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Andreas Pakulat
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

Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Timenkov Yuri
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

Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Alexander Bubnov
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

Re: [CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Timenkov Yuri
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

[CMake] is it possbile to export environment varibles from cmake scripts?

2008-07-07 Thread Alexander Bubnov
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