[CMake] Getting a list of the defined CMake cache variables along with properties and documentation?

Bartlett, Roscoe A rabartl at sandia.gov
Wed Dec 3 18:34:33 EST 2008


Hello,

Is there a way in a CMakeLists.txt file to get a list of all of the defined CMake cache variables, get their properties, and their documentation?  I would like to have this so that I can build more general documentation for our CMake project.  I could of course just parse the CMakeCache.txt file myself but if there is a way to do this in CMake then that might be better.  Otherwise, I will need to create a tool that would do a configure, then read the CMakeCache.txt file and build documentation output like you would see for our current autotools build system.

Thanks,

- Ross

---------------------------------------------------------
Dr. Roscoe A. Bartlett
Senior Member of the Technical Staff
Trilinos Software Engineering Technologies and Integration Lead
Sandia National Laboratories
Phone: (505) 275-6147


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20081203/17fd7d6e/attachment.htm>


More information about the CMake mailing list