<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 9 Oct 2019 at 11:11, Ellon Paiva <<a href="mailto:ellonpaiva@gmail.com">ellonpaiva@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><font face="sans-serif">Another somehow related question: is there a way to recover the name of all options defined in a project?</font><div dir="auto"><font face="sans-serif"><br></font></div><br></div></blockquote><div><br></div><div>You should be able to get this by reading the directory property CACHE_VARIABLES ( <a href="https://cmake.org/cmake/help/latest/prop_dir/CACHE_VARIABLES.html">https://cmake.org/cmake/help/latest/prop_dir/CACHE_VARIABLES.html</a> ) 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 ( <a href="https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html#properties-on-cache-entries">https://cmake.org/cmake/help/latest/manual/cmake-properties.7.html#properties-on-cache-entries</a> ) to see what's possible.<br></div><div><br></div><div>Petr<br>
</div></div></div>