[CMake] handling global state
Brandon J. Van Every
bvanevery at gmail.com
Thu Jun 1 20:12:34 EDT 2006
William A. Hoffman wrote:
> At 05:10 PM 6/1/2006, Brandon J. Van Every wrote:
>
>
>>>
>>>
>> STATIC? Is that some post 2.4.2 thing? It's not in the 2.4.2 docs. What does it do?
>>
> Sorry, that is not something you can do from the set command, INTERNAL does pretty much
> the same thing.
>
>
>
Tried INTERNAL. Thanks for the pointer. The docs could stand an
example. It took me quite a number of hacks before I figured out that I
had to type things like SET(MYVAR 310 CACHE INTERNAL "Isn't this a neato
docstring!") Anything with fewer elements than that and I just got
lists with INTERNAL and so forth tacked on them.
On the other hand, I discovered that contrary to what I was expecting,
if I define a variable before ADD_SUBDIRECTORY then it'll be trivially
communicated to the subdirectory. No CACHE INTERNAL "docstring"
required. I suppose CACHE INTERNAL "docstring" is for if I want to pass
values back up from the subdirectories, or across subdirectories?
Cheers,
Brandon Van Every
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/cmake/attachments/20060601/8d7b16f0/attachment.html
More information about the CMake
mailing list