[Cmake] Quoting rules
Neil Killeen
Neil . Killeen at atnf . csiro . au
Thu, 26 Jun 2003 11:49:34 +1000 (EST)
I have just discovered the MACRO command, yippee !
MACRO (MYMACRO arg1 arg2)
MESSAGE ("arg1 = " ${arg1})
MESSAGE ("arg2 = " ${arg2})
ENDMACRO(MYMACRO)
I tried to invoke it with
MYMACRO (${ARG1} ${ARG2})
where ARG1 and ARG2 are defined CMake variables.
But that failed claiming wrong number of arguments.
Eventually by poking about in ITK I discovered
that I need to quote the arguments.
MYMACRO ("${ARG1}" "${ARG2}")
what exactly are the quoting rules in CMake ? I have always
been a bit confused by this !
This could usefully go in the FAQ.
cheers
Neil