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

_______________________________________________
CMake mailing list
[email protected]
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to