Hi, I was wondering whether it's possible to invoke a macro through a variable. The variable contains a command (or list of commands) to be invoked.
For example: macro(do_it) message(STATUS "do_it") endmacro(do_it) set(cmd do_it) ${cmd}() # <-- This doesn't work, but is there a way to do this? Best regards, Marcel Loose _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake