<div class="gmail_quote">On Sat, Mar 21, 2009 at 7:32 PM, Robert Dailey <span dir="ltr"><<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>></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;">
Currently I'm having a bit of trouble making variables defined in the<br>
following directory:<br>
<br>
C:\a\b\c\d\e\CMakeLists.txt<br>
<br>
Available to another script in a distant directory, located here:<br>
<br>
C:\a\b\x\y\z\CMakeLists.txt<br>
<br>
I've tried using PARENT_SCOPE, but this doesn't declare it "high"<br>
enough. The only possible way I've been able to make this work is by<br>
making it an internal cache variable. However, I do not want to<br>
persist the contents of the variable. Do I have any other options?</blockquote><div><br>You should be able to chain PARENT_SCOPE, I think. In other words have a <br><br>set(FOO ${FOO} PARENT_SCOPE)<br>in all of the directories beneath the one where you actually need the variable.<br>
<br>Using an internal cache variable is the only other option I can think of.<br></div></div><br>-- <br>Philip Lowman<br>