[CMake] getting values from subdirs

Luigi Calori l.calori at cineca.it
Thu Mar 15 11:05:37 EST 2007


I would like to being able to collect a list of values from a macro that 
get called from several subdirs
The obvious solutions to init it into the main CMakeLists and update 
whithin the macro does not work as (probably) the init inside the main 
CmakeLists get executed
anyway for each subdir
If declare it CACH INTERNAL and I do no init, it get updated but retain 
values on different CMake runs.... any thougt?
A possible solution is to write a file....but it does not seem much elegant

Thanks anyway for the help


More information about the CMake mailing list