<div class="gmail_quote">On Wed, Mar 4, 2009 at 12:02 AM, Michael Wild <span dir="ltr">&lt;<a href="mailto:themiwi@gmail.com">themiwi@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><div></div><div class="h5"></div></div>
If you add a subdirectory, it inherits all variables and macros from the parent directories. This is actually what one expects, otherwise you would have to repeat the whole system detection (find_pacakge, find_library, find_path etc.) in every subdirectory. The reverse, however is not true. By default, variables (I&#39;m not sure about macros) don&#39;t propagate into the parent scope, unless one uses the PARENT_SCOPE option or adds the variable to the cache which makes it global.</blockquote>
</div><br>That makes perfect sense and works as I would expect. However, I&#39;m
seeing the behavior you state should not happen. That is, the macros
defined in the child directory are somehow propagating up to the parent.<br>