Re: [CMake] EXEC_PROGRAM vs.. EXECUTE_PROCESS problem

2006-09-13 Thread Brad King
Alexander Neundorf wrote: > EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e 'puts > Config::CONFIG["libdir"]' >OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH) EXECUTE_PROCESS does not use a shell like EXEC_PROGRAM so it directly converts CMake arguments into command line arguments. The abo

[CMake] EXEC_PROGRAM vs.. EXECUTE_PROCESS problem

2006-09-13 Thread Alexander Neundorf
Hi, please have a look at the attached CMakeLists.txt. There is one call to EXEC_PROGRAM(), which works, and one call to EXECUTE_PROCESS(), where cmake complains about an unterminate string. I didn't find a way to get this working. Did I just miss the right way or is it a bug ? Alex -- "Feel