[CMake] 'recursive' or multiple level @@ replacement in configure_file
J.S. van Bethlehem
j.s.van.bethlehem at astro.rug.nl
Thu May 5 07:08:06 EDT 2011
Today I was trying something along the following lines:
configure_file(config.h.in config.h @ONLY)
and in config.h.in do:
set(INSTALL_PATH @@BASENAME at _DIR@)
# do something
My expectation was that first @BASENAME@ would evaluate to 'some_text'
after which @some_text_DIR@ would evaluate to the respective value. This
fails, so the obvious question is: am I trying something that is simply
not possible, or should I use different syntax to accomplish this?
Jakob van Bethlehem
More information about the CMake