[CMake] EXEC_PROGRAM vs.. EXECUTE_PROCESS problem

Alexander Neundorf a.neundorf-work at gmx.net
Wed Sep 13 17:15:58 EDT 2006


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 free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: http://www.gmx.net/de/go/topmail
-------------- next part --------------
FIND_PROGRAM(RUBY_EXECUTABLE NAMES ruby ruby1.8 ruby18 )

EXECUTE_PROCESS(COMMAND ${RUBY_EXECUTABLE} -r rbconfig -e 'puts Config::CONFIG["libdir"]'
   OUTPUT_VARIABLE RUBY_POSSIBLE_LIB_PATH)

EXEC_PROGRAM(${RUBY_EXECUTABLE} ARGS -r rbconfig -e 'puts Config::CONFIG[\"archdir\"]'
   OUTPUT_VARIABLE RUBY_ARCH_DIR)


More information about the CMake mailing list