Re: [CMake] Avoid nested cmake invocation taking parent's info.

2008-11-10 Thread Óscar Fuentes
Alexander Neundorf <[EMAIL PROTECTED]> writes: >> >> The problem is in execute_process. The cmake process created by it is >> >> taking variable values from the enclosing cmake, so it uses the same >> >> compiler, configure variables, etc. >> > >> > What do you mean by "variables"? >> > CMake one

Re: [CMake] Avoid nested cmake invocation taking parent's info.

2008-11-10 Thread Alexander Neundorf
On Monday 10 November 2008, Óscar Fuentes wrote: > Eric NOULARD <[EMAIL PROTECTED]> > > writes: > >> The problem is in execute_process. The cmake process created by it is > >> taking variable values from the enclosing cmake, so it uses the same > >> compiler, configure variables, etc. > > > > What

Re: [CMake] Avoid nested cmake invocation taking parent's info.

2008-11-09 Thread Óscar Fuentes
Eric NOULARD <[EMAIL PROTECTED]> writes: >> The problem is in execute_process. The cmake process created by it is >> taking variable values from the enclosing cmake, so it uses the same >> compiler, configure variables, etc. > > What do you mean by "variables"? > CMake one or > Environment one?

Re: [CMake] Avoid nested cmake invocation taking parent's info.

2008-11-09 Thread Eric NOULARD
Le Sun, 09 Nov 2008 22:24:45 +0100, Óscar Fuentes <[EMAIL PROTECTED]> a écrit : > While cross-compiling, I'm trying to avoid depending on previously > built executables, that is, the cross-compile build should create the > native utilities it needs. For this, I'm trying > > execute_process( > CO

[CMake] Avoid nested cmake invocation taking parent's info.

2008-11-09 Thread Óscar Fuentes
While cross-compiling, I'm trying to avoid depending on previously built executables, that is, the cross-compile build should create the native utilities it needs. For this, I'm trying execute_process( COMMAND ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Release ${CMAKE_SOURCE_DIR} WORKING_DIRECTORY ${CX