Re: [CMake] 'recursive' or multiple level @@ replacement in configure_file

2011-05-06 Thread J.S. van Bethlehem
David Cole wrote: On Thu, May 5, 2011 at 7:08 AM, J.S. van Bethlehem j.s.van.bethle...@astro.rug.nl mailto:j.s.van.bethle...@astro.rug.nl wrote: Hello, Today I was trying something along the following lines: in CMakeLists.txt set(BASENAME some_text) set(${BASENAME}_DIR

[CMake] 'recursive' or multiple level @@ replacement in configure_file

2011-05-05 Thread J.S. van Bethlehem
Hello, Today I was trying something along the following lines: in CMakeLists.txt set(BASENAME some_text) set(${BASENAME}_DIR /some/path) set(${BASENAME}_SHARE /some/other/path) set(${BASENAME}_INCLUDES file1.h;file2.h;file3.h) configure_file(config.h.in config.h @ONLY) and in config.h.in do:

Re: [CMake] 'recursive' or multiple level @@ replacement in configure_file

2011-05-05 Thread David Cole
On Thu, May 5, 2011 at 7:08 AM, J.S. van Bethlehem j.s.van.bethle...@astro.rug.nl wrote: Hello, Today I was trying something along the following lines: in CMakeLists.txt set(BASENAME some_text) set(${BASENAME}_DIR /some/path) set(${BASENAME}_SHARE /some/other/path)