Hi, I'm trying to get a return value of a script that I runs from execute_process() command, as part of an install() command, and I don't see that the return variable is getting any value. I'm doing something like: install(CODE " execute_process(COMMAND my_script RESULT_VARIABLE ret_val) MESSAGE(\"install return value is ${ret_val}\") ")
It does work when not included in an install CODE segment. Any idea how to get the make to abort when my_script fails? Thanks, Jacob _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake