[CMake] execute_process command problem

Ajay Divekar aj.divekar at gmail.com
Mon Sep 17 12:12:52 EDT 2007


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 "${ret_var}" STREQUAL 0)
  MESSAGE(FATAL_ERROR "Unable to execute make clean command on the
source dir. Error -> ${ret_var}")
ENDIF(NOT "${ret_var}" STREQUAL 0)

The error that is generated is as follows

"Unable to execute make clean command on the source dir. Error -> No
such file or directory."

I have tried this over and over but this command never works on Fedora.

Thanks in advance. Waiting for your reply.

Regards,

Ajay Divekar


More information about the CMake mailing list