Is there a way to call a dynamically created macro name?

This is what I want to achieve:

set(module "ftgl")

if(COMMAND use_${module})
        use_${module}()
endif()

But cmake chokes, saying

Parse error.  Expected a command name, got unquoted argument with text
"use_${module}".

Regards,
rod

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to