Thanks for that info David.<div><br></div><div>I have to say that the way this is setup feels kind of duct-taped together. I expected the documentation for such a feature to be under &#39;set&#39; in the docs, but it wasn&#39;t. Plus the option in the list that is the default must be specified in 2 different locations. I think a cleaner solution could be implemented:</div>
<div><br></div><div>set( BaseName &quot;binary;octal;decimal;hexidecimal&quot; CACHE LIST &quot;Documentation&quot; )</div><div><br></div><div>The first item in the list would be the default.</div><div><br></div><div>Wouldn&#39;t this work and be slightly cleaner and more straight-forward? Plus you could keep the documentation for this feature contained to the &#39;set&#39; command in the docs like other cache variable types. I just don&#39;t think lists should be handled differently.<br clear="all">
<div><br></div><div>---------</div>Robert Dailey<br>
<br><br><div class="gmail_quote">On Tue, Dec 6, 2011 at 3:32 PM, David Cole <span dir="ltr">&lt;<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="HOEnZb"><div class="h5">On Tue, Dec 6, 2011 at 4:26 PM, David Doria &lt;<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>&gt; wrote:<br>
&gt; On Tue, Dec 6, 2011 at 4:19 PM, Robert Dailey &lt;<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>&gt; wrote:<br>
&gt;&gt; Has anyone thought of creating a &quot;LIST&quot; type for cache variables? In CMake<br>
&gt;&gt; GUI on Windows, this would be represented by a combo-box or drop-down box<br>
&gt;&gt; that allows the user to pick one item out of a list of available items.<br>
&gt;&gt;<br>
&gt;&gt; Is this possible?<br>
&gt;<br>
&gt; I definitely agree. An immediate use case is for the CMAKE_BUILD_TYPE<br>
&gt; variable. I added a feature request here a while back:<br>
&gt; <a href="http://public.kitware.com/Bug/view.php?id=11806" target="_blank">http://public.kitware.com/Bug/view.php?id=11806</a><br>
&gt;<br>
&gt; David<br>
</div></div>&gt; --<br>
&gt;<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>