[CMake] using a variable in the name of a macro
Brad King
brad.king at kitware.com
Wed Nov 8 16:26:17 EST 2006
Gaëtan Lehmann wrote:
>
> Hi,
>
> Currently with cmake, we can do:
>
> SET(type "US")
> SET(IUS "tralala")
>
> then writting ${I{type}} is the same than writting ${IUS}. That's very
> convenient in many cases (and that's the base of WrapITK).
> However, it's not possible to do the same with the name of the macro:
>
> MACRO(DEFINE_PYTHON)
> ...
> ENDMACRO(DEFINE_PYTHON)
> SET(lang PYTHON)
>
> then calling DEFINE_${lang}() doesn't work.
>
> Can I hope to see that feature in the next releases ?
Feature requests can be submitted here:
http://www.cmake.org/Bug
-Brad
More information about the CMake
mailing list