[CMake] when are variables inherited?
Sylvain Benner
benner at virtools.com
Wed Sep 26 11:28:34 EDT 2007
> hah! I see what happened. Obviously, the variable needs to be set
> _before_ using ADD_SUBDIRECTORY (oops). For some reason I had it after.
> Thanks anyway.
>
> Javier
>
>
Yes, ADD_SUBDIRECTORY processes immediatly the subdirectory.
Note that inherited variables actually are new variables, so if you
modify an inherited variable in a subdirectory, the parent variable will
not be modified in the topdirectory.
--Sylvain
More information about the CMake
mailing list