[CMake] Recover help text from option() ?

Ellon Paiva ellonpaiva at gmail.com
Wed Oct 9 08:17:32 EDT 2019


On 10/9/19 1:59 PM, Petr Kmoch wrote:
> You should be able to get this by reading the directory property 
> CACHE_VARIABLES ( 
> https://cmake.org/cmake/help/latest/prop_dir/CACHE_VARIABLES.html ) 
> and going from there (querying variable types etc.), but note that 
> it's "intended for debugging purposes." Please read the docs on cache 
> variable properties ( 
> https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html#properties-on-cache-entries 
> ) to see what's possible.

Perfect, thanks again !

Ellon


More information about the CMake mailing list