[CMake] Indrect function calls

Firegurafiku firegurafiku at gmail.com
Wed Sep 7 05:41:44 EDT 2011


Is there a way to indirectly call a function which name is a variable?
I want to do something like that:

    function(avr_compiler_gcc_cflags CFLAGS) ...
    function(avr_compiler_iar_cflags CGLAGS) ...

    set(COMPILER "gcc")
    call("avr_compiler_${COMPILER}_cflags" CFLAGS)

Is there exists function similar to call()?
----
Firegurafiku


More information about the CMake mailing list