Bug 431194

Summary: kdevelop fails to toggle cmake project options
Product: [Applications] kdevelop Reporter: Eugene Shalygin <eugene.shalygin+bugzilla.kde>
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal CC: kde
Priority: NOR    
Version: git master   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed In: 5.6.3

Description Eugene Shalygin 2021-01-05 19:28:55 UTC
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
Comment 1 Rolf Eike Beer 2021-01-05 19:56:23 UTC
I see the same in 5.6.1.
Comment 2 Bug Janitor Service 2021-09-02 10:33:51 UTC
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/253
Comment 3 Bug Janitor Service 2021-09-02 10:33:53 UTC
A possibly relevant merge request was started @ https://invent.kde.org/kdevelop/kdevelop/-/merge_requests/253
Comment 4 Igor Kushnir 2021-09-06 07:52:20 UTC
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