On Sat, Mar 21, 2009 at 7:32 PM, Robert Dailey <[email protected]> wrote:
> Currently I'm having a bit of trouble making variables defined in the
> following directory:
>
> C:\a\b\c\d\e\CMakeLists.txt
>
> Available to another script in a distant directory, located here:
>
> C:\a\b\x\y\z\CMakeLists.txt
>
> I've tried using PARENT_SCOPE, but this doesn't declare it "high"
> enough. The only possible way I've been able to make this work is by
> making it an internal cache variable. However, I do not want to
> persist the contents of the variable. Do I have any other options?
You should be able to chain PARENT_SCOPE, I think. In other words have a
set(FOO ${FOO} PARENT_SCOPE)
in all of the directories beneath the one where you actually need the
variable.
Using an internal cache variable is the only other option I can think of.
--
Philip Lowman
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake