<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><div>Thanks John, I've tried your suggestion and it works, so topic closed.</div><div>Best regards,</div><div>Maarten</div><div style="font-family:verdana, helvetica, sans-serif;font-size:10pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:10pt"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> John Drescher &lt;drescherjm@gmail.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> Maarten Nieber &lt;hallomaarten@yahoo.com&gt;; CMake mailing list &lt;cmake@cmake.org&gt;<br><b><span style="font-weight: bold;">Sent:</span></b> Tue, February 1, 2011 11:43:44 PM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [CMake] problem with ADD_SUBDIRECTORY always inheriting all settings<br></font><br>
On Tue, Feb 1, 2011 at 5:36 PM, Maarten Nieber &lt;<a ymailto="mailto:hallomaarten@yahoo.com" href="mailto:hallomaarten@yahoo.com">hallomaarten@yahoo.com</a>&gt; wrote:<br>&gt; Hi John,<br>&gt; thanks, but that only works one level deep, right? If you have a structure A<br>&gt; -&gt; B -&gt; C, then C will always inherit all of A, regardless of where in B's<br>&gt; CMakeList you put the ADD_SUBDIRECTORY.<br><br>No it depends where you put add_subdirectory on each level. Basically<br>any variable set (or other setting) before the call of<br>add_subdirectory will be inherited. If you put add_subdirectory as the<br>second line of each level (just after the project line) i do not<br>believe anything will be inherited from a to c.<br><br>John<br></div></div><div style="position:fixed"></div>


</div><br>

      </body></html>