<table><tr><td style="">gracicot created this revision.<br />gracicot added reviewers: KDevelop, kfunk.<br />Restricted Application added a subscriber: kdevelop-devel.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D8215" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>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<br />
dropdown that mimic the behavior of cmake-gui.</p>
<p>Here's an example of a cmake dropdown option:</p>
<div class="remarkup-code-block" style="margin: 12px 0;" data-code-lang="text" data-sigil="remarkup-code-block"><pre class="remarkup-code" style="font: 11px/15px "Menlo", "Consolas", "Monaco", monospace; padding: 12px; margin: 0; background: rgba(71, 87, 120, 0.08);">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})</pre></div>
<p>All other info about cmake STRINGS property here: <a href="https://blog.kitware.com/constraining-values-with-comboboxes-in-cmake-cmake-gui/" class="remarkup-link" target="_blank" rel="noreferrer">https://blog.kitware.com/constraining-values-with-comboboxes-in-cmake-cmake-gui/</a> and here:<br />
<a href="https://cmake.org/cmake/help/latest/prop_cache/STRINGS.html" class="remarkup-link" target="_blank" rel="noreferrer">https://cmake.org/cmake/help/latest/prop_cache/STRINGS.html</a></p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R32 KDevelop</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8215" rel="noreferrer">https://phabricator.kde.org/D8215</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/cmake/settings/cmakecachedelegate.cpp<br />
plugins/cmake/settings/cmakecachemodel.cpp<br />
plugins/cmake/settings/cmakepreferences.cpp</div></div></div><br /><div><strong>To: </strong>gracicot, KDevelop, kfunk<br /><strong>Cc: </strong>kdevelop-devel<br /></div>