D8215: Added support for STRINGS property in CMake cache editor
Guillaume Racicot
noreply at phabricator.kde.org
Mon Oct 9 02:59:37 UTC 2017
gracicot created this revision.
gracicot added reviewers: KDevelop, kfunk.
Restricted Application added a subscriber: kdevelop-devel.
REVISION SUMMARY
CMake had support of options with a dropdown choice since version 2.8. This patch add support for displaying cmake variable that has a STRINGS property as an editable
dropdown that mimic the behavior of cmake-gui.
Here's an example of a cmake dropdown option:
set(Color "Red" CACHE STRING
â"Color chosen by the user at CMake configure time")
set(ColorValues "Red;Orange;Yellow;Green;Blue;Violet" CACHE STRING
â"List of possible values for the Color cache variable")
set_property(CACHE Color PROPERTY STRINGS ${ColorValues})
All other info about cmake STRINGS property here: https://blog.kitware.com/constraining-values-with-comboboxes-in-cmake-cmake-gui/ and here:
https://cmake.org/cmake/help/latest/prop_cache/STRINGS.html
REPOSITORY
R32 KDevelop
BRANCH
master
REVISION DETAIL
https://phabricator.kde.org/D8215
AFFECTED FILES
plugins/cmake/settings/cmakecachedelegate.cpp
plugins/cmake/settings/cmakecachemodel.cpp
plugins/cmake/settings/cmakepreferences.cpp
To: gracicot, #kdevelop, kfunk
Cc: kdevelop-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kdevelop-devel/attachments/20171009/7a99297c/attachment-0001.html>
More information about the KDevelop-devel
mailing list