[CMake] Docstring from cache variable

James Bigler jamesbigler at gmail.com
Wed Nov 26 18:01:46 EST 2008


Is it possible to get the docstring of a cache variable using
something like get_property (or perhaps another mechanism)?

I tried this, but it didn't work.

get_property(MYVAR_DOCSTRING VARIABLE PROPERTY DOCSTRING)
message("MYVAR_DOCSTRING = ${MYVAR_DOCSTRING}")

Thanks,
James


More information about the CMake mailing list