Hi,

I am trying to do something like this:

function (FOO_DEBUG)
    ...
endfunction (FOO_DEBUG)

function (FOO_RELEASE)
    ...
endfunction (FOO_RELEASE)

foreach (CONFIG ${CMAKE_CONFIGURATION_TYPES})
    FOO_${CONFIG}
endforeach(CONFIG)

But naturally, it doesn't work :(
Is there a way to make it works ? I looked for command like eval or exec but didn't find any. I am trying to achieve a behavior similar to TCL code.

Thank you,
Ben.

_______________________________________________
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