Hello All,

Does anyone know offhand if it is possible to nest @VAR@s? For example, can I 
do something like this:

@@PROJECT_NAME@_VERSION_MAJOR@

What I would like for this to do is to first replace @PROJECT_NAME@ with the 
name of the project, something like Foo for instance. Then the second 
replacement to replace @Foo_VERSION_MAJOR@ with whatever is set for the 
Foo_VERSION_MAJOR variable. Is this possible in CMake or do I need to do some 
fancy things with cmakedefines?

Thank You,
Eric

Do not worry because you have no official position. Worry about your 
qualifications. Do not worry because no one appreciates your abilities. Seek to 
be worthy of appreciation. -- The Analects, Confucius

--

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