[CMake] when are variables inherited?

Javier Gonzalez javierggt at yahoo.com
Wed Sep 26 11:05:25 EDT 2007


Hi again,

I still don't understand when variables are inherited by subdirectories.
I see that if I define the variable using cmake -D then it is the same
in all subdirectories. I guess I could use an environment variable.
However, if I do something like:

SET (FINITO_INSTALL_DIR /Users/jgonzalez/financial/finito/trunk CACHE
PATH "finito-dir")

it is not inherited by subdirectories. What am I missing?

Javier




More information about the CMake mailing list