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 'set' in the docs, but it wasn'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 "binary;octal;decimal;hexidecimal" CACHE LIST "Documentation" )</div><div><br></div><div>The first item in the list would be the default.</div><div><br></div><div>Wouldn't this work and be slightly cleaner and more straight-forward? Plus you could keep the documentation for this feature contained to the 'set' command in the docs like other cache variable types. I just don'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"><<a href="mailto:david.cole@kitware.com">david.cole@kitware.com</a>></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 <<a href="mailto:daviddoria@gmail.com">daviddoria@gmail.com</a>> wrote:<br>
> On Tue, Dec 6, 2011 at 4:19 PM, Robert Dailey <<a href="mailto:rcdailey@gmail.com">rcdailey@gmail.com</a>> wrote:<br>
>> Has anyone thought of creating a "LIST" type for cache variables? In CMake<br>
>> GUI on Windows, this would be represented by a combo-box or drop-down box<br>
>> that allows the user to pick one item out of a list of available items.<br>
>><br>
>> Is this possible?<br>
><br>
> I definitely agree. An immediate use case is for the CMAKE_BUILD_TYPE<br>
> variable. I added a feature request here a while back:<br>
> <a href="http://public.kitware.com/Bug/view.php?id=11806" target="_blank">http://public.kitware.com/Bug/view.php?id=11806</a><br>
><br>
> David<br>
</div></div>> --<br>
><br>
> Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
><br>
> 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>
><br>
> 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>
><br>
> Follow this link to subscribe/unsubscribe:<br>
> <a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
<br>