[CMake] execute_process command problem

2007-09-17 Thread Ajay Divekar
I have some problem executing the execute_process command of cmake on fedora 6 and 7 whereas the same command works fine in FreeBSD 6.2. The command that i have is as follows EXECUTE_PROCESS( COMMAND cd $ENV{PP_ROOTDIR}/src COMMAND make clean RESULT_VARIABLE ret_var) IF(NOT

Re: [CMake] execute_process command problem

2007-09-17 Thread Ajay Divekar
What that does is it outputs make clean command's output on standard output. On the other hand if I cd and then execute make clean command then it does not output anything to the standard output. Regards, Ajay Divekar On 9/17/07, Bill Hoffman [EMAIL PROTECTED] wrote: Ajay Divekar wrote: I

Re: [CMake] execute_process command problem

2007-09-17 Thread Bill Hoffman
Ajay Divekar wrote: I have some problem executing the execute_process command of cmake on fedora 6 and 7 whereas the same command works fine in FreeBSD 6.2. The command that i have is as follows EXECUTE_PROCESS( COMMAND cd $ENV{PP_ROOTDIR}/src COMMAND make clean

Re: [CMake] execute_process command problem

2007-09-17 Thread wim van hoydonck
Add an output_variable to the list of arguments of execute_process if you do not want the output of make clean to be send to stdout: execute_process(WORKING_DIRECTORY $ENV{PP_ROOTDIR}/src COMMAND make clean RESULT_VARIABLE ret_var OUTPUT_VARIABLE output_var) Greetings,