SUMMARY Toggling boolean project options in the project property page does not change option values (although the configuring runs twice, maybe the second run overwrites values) STEPS TO REPRODUCE 1. Add an option to a cmake project using the `option()` cmake command. 2. Open the project in KDevelop and open the "Configure CMake Settings" project's property page. 3. Toggle the option. OBSERVED RESULT Configuring runs twice, at the end the option value does not change. EXPECTED RESULT The value changes. SOFTWARE/OS VERSIONS Operating System: Gentoo KDE Frameworks Version: 5.78.0 Qt Version: 5.15.2 Kernel Version: 5.10.2-gentoo OS Type: 64-bit
I see the same in 5.6.1.
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/253
Git commit 52409f95531a2c52c19afcf5461022b5ff93bf43 by Igor Kushnir. Committed on 06/09/2021 at 07:51. Pushed by igorkushnir into branch '5.6'. Revert "Run configure once to apply cmake preferences for CMake file api usage" This reverts commit 4887d28ec73db039b63a2609b92600e90721654a. This commit prevented KDevelop from storing CMake Settings changes. Related: bug 438212 FIXED-IN: 5.6.3 M +0 -8 plugins/cmake/settings/cmakepreferences.cpp https://invent.kde.org/kdevelop/kdevelop/commit/52409f95531a2c52c19afcf5461022b5ff93bf43