On Tue, Dec 6, 2011 at 4:26 PM, David Doria <[email protected]> wrote: > On Tue, Dec 6, 2011 at 4:19 PM, Robert Dailey <[email protected]> wrote: >> Has anyone thought of creating a "LIST" type for cache variables? In CMake >> GUI on Windows, this would be represented by a combo-box or drop-down box >> that allows the user to pick one item out of a list of available items. >> >> Is this possible? > > I definitely agree. An immediate use case is for the CMAKE_BUILD_TYPE > variable. I added a feature request here a while back: > http://public.kitware.com/Bug/view.php?id=11806 > > David > -- > > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the CMake FAQ at: > http://www.cmake.org/Wiki/CMake_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.cmake.org/mailman/listinfo/cmake
>From that bug report: For cmake-gui this can be done by setting the STRINGS property of the cache entry: set_property(CACHE CMAKE_BUILD_TYPE PROPERTY STRINGS "DEBUG;RELEASE;MY_BUILD_TYPE") And here's a blog about that feature: http://www.kitware.com/blog/home/post/82 So, yes, Robert, it is possible. And David D., I'm not sure how we could make it automatic as you request in the bug report. HTH, David C. -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link to subscribe/unsubscribe: http://www.cmake.org/mailman/listinfo/cmake
