[CMake] Passing a var to a macro

2008-03-30 Thread Leopold Palomo Avellaneda
Hi, I'm creating a macro and I'm having an stupid problem that I don't know how to solve. For example, in this code: file(GLOB plugin_STR RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *.c *.cpp *.cxx *.h *.hpp) message (STATUS Files to process in the macro ${plugin_STR}) I obtain a list of several

Re: [CMake] Passing a var to a macro

2008-03-30 Thread Adiel Mittmann
Hi! On Sun, Mar 30, 2008 at 08:13:27PM +0200, Leopold Palomo Avellaneda wrote: but if I do: file(GLOB plugin_STR *.c *.cpp *.cxx *.h *.hpp) PRINT_VALUES(${plugin_STR}) where: macro(PRINT_VALUES list) message (STATUS Files to process in the macro PRINT_VALUES ${list})

Re: [CMake] Passing a var to a macro

2008-03-30 Thread Leopold Palomo Avellaneda
A Diumenge 30 Març 2008, Adiel Mittmann va escriure: Hi! On Sun, Mar 30, 2008 at 08:13:27PM +0200, Leopold Palomo Avellaneda wrote: but if I do: file(GLOB plugin_STR *.c *.cpp *.cxx *.h *.hpp) PRINT_VALUES(${plugin_STR}) where: macro(PRINT_VALUES list) message (STATUS