[CMake] function vs macro

2009-03-03 Thread Robert Dailey
Hi, After reading the CMake 2.6 documentation, I'm not really clear on the differences between a macro and a function. Could someone explain this in a bit more detail? Based on the differences, which should I use? ___ Powered by www.kitware.com Visit

Re: [CMake] function vs macro

2009-03-03 Thread Michael Jackson
The subtle difference is this line from the macro help section: Note that the parameters to a macro and values such as ARGN are not variables in the usual CMake sense. They are string replacements much like the c preprocessor would do with a macro. If you want true CMake variables you

Re: [CMake] function vs macro

2009-03-03 Thread Bill Hoffman
Michael Jackson wrote: The subtle difference is this line from the macro help section: Note that the parameters to a macro and values such as ARGN are not variables in the usual CMake sense. They are string replacements much like the c preprocessor would do with a macro. If you want true