Bug 431194 - kdevelop fails to toggle cmake project options
Summary: kdevelop fails to toggle cmake project options
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: git master
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-05 19:28 UTC by Eugene Shalygin
Modified: 2021-09-06 07:52 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.6.3


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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