[CMake] Calling macros from within macros.

Josef Karthauser joe.karthauser at geomerics.com
Wed Oct 24 11:22:50 EDT 2007


Is it not possible to call a variable macroname from within a macro?

	MACRO(INDIRECT_MACRO MACRONAME LIST)
		FOREACH(L ${LIST})
			${MACRONAME}(${L})
		ENDFOREACH(L)
      ENDMACRO(INDIRECT_MACRO)

	INDIRECT_MACRO(MESSAGE ONE TWO THREE)

Joe


More information about the CMake mailing list