I am trying to execute a script which calculates checksum of the binary files created during install process.
the script is as follows #!/bin/sh IF(UNIX) SET(CHKSUM "/sbin/sha1 -r") ELSE(UNIX) SET(CHKSUM "/usr/bin/sha1sum") ENDIF(UNIX) EXECUTE_PROCESS( COMMAND ${CHKSUM} $ENV{PP_ROOTDIR}/bin/PSWd OUTPUT_FILE CHECKSUM.txt ) The above execute_program command does not work but if I replace it with (on unix synstems) EXECUTE_PROCESS( COMMAND /sbin/sha1 -r bin/PSWd OUTPUT_FILE CHECKSUM.txt) it works. This leads me to believe that EXECUTE_PROCESS command does not take variables. Is this true? and if it is what would be the solution to calculating checksum on different platforms? Regards, -- Ajay Divekar _______________________________________________ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake