Re: [CMake] Recover help text from option() ?

2019-10-09 Thread Ellon Paiva
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

Re: [CMake] Recover help text from option() ?

2019-10-09 Thread Petr Kmoch
On Wed, 9 Oct 2019 at 11:11, Ellon Paiva wrote: > Another somehow related question: is there a way to recover the name of > all options defined in a project? > > > You should be able to get this by reading the directory property CACHE_VARIABLES (

Re: [CMake] Recover help text from option() ?

2019-10-09 Thread Petr Kmoch
Hi Ellon. On Wed, 9 Oct 2019 at 09:51, Ellon Paiva wrote: > Hi there, > > I was wondering if there was a way to recover the help text passed to an > option to be used later below in the same CMake script. > > I saw that the help text goes into a comment before the option on the >

[CMake] Recover help text from option() ?

2019-10-09 Thread Ellon Paiva
Hi there, I was wondering if there was a way to recover the help text passed to an option to be used later below in the same CMake script. I saw that the help text goes into a comment before the option on the CMakeCache.txt, but is it stored in any recoverable variable during the script