Re: [CMake] Build dependent targets

2019-11-19 Thread Ellon Paiva
Hi Eric, On 11/19/19 11:10 AM, Eric Noulard wrote: Le mar. 19 nov. 2019 à 11:03, Ellon Paiva <mailto:ellonpa...@gmail.com>> a écrit : Hi, I was wondering: is there any way to compile all targets that depend on a given target ? (i.e. the "dependent targets&q

[CMake] Build dependent targets

2019-11-19 Thread Ellon Paiva
Hi, I was wondering: is there any way to compile all targets that depend on a given target ? (i.e. the "dependent targets", if my English does not fail). In my particular case, I have a huge project that contains many libs and executables, and I would like to check that the targets that

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

[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