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
_______________________________________________
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

Reply via email to