Bug 355909 - Cannot configure global CMake settings before creating a CMake project.
Summary: Cannot configure global CMake settings before creating a CMake project.
Status: REPORTED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (show other bugs)
Version: git master
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on: 353180
Blocks:
  Show dependency treegraph
 
Reported: 2015-11-25 22:25 UTC by bungeman
Modified: 2021-03-09 22:48 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bungeman 2015-11-25 22:25:51 UTC
Built kdevelop at 0fe20472bb6b1f79d3ef17c68656c714cb521464 , kdevplatform at 70ef09a0e7ba0f5b98f05fbf73af2c6fdc549ea3 to test drive the new hotness.

The first time I start KDevelop after building I want to be able to set the 'Generator' to 'Ninja' in Settings > Configure KDevelop > CMake . However, it appears that this panel is part of the CMake builder, and this plugin isn't loaded until it is needed. The CMake project manager plugin is loaded early, so I can find my CMakeLists.txt and create a project. Now that a CMake project is available, the Settings > Configure KDevelop > CMake configuration is finally available.

However, at the moment its availability is moot, since it doesn't appear to remember anything. It looks like this panel used to work by accident by storing the state on itself and hoping it never went away. Now it appears to always go away, so it never remembers any settings.

Reproducible: Always

Steps to Reproduce:
1. Build recent KDevelop.
2. Launch with fresh session.
3. Try to set CMake settings at Settings > Configure KDevelop > CMake
4. ... they aren't there!

5. Open a CMake based project.
6. Try to set CMake settings at Settings > Configure KDevelop > CMake
7. The setting never take; all settings are reverted when returning. So there's no way to build with ninja (or change the default cmake binary).

Actual Results:  
No way to configure CMake builder before opening CMake project.
No way to actually build with ninja.

Expected Results:  
Can configure CMake builder at any time (so that new projects use specific cmake settings).
Can build with ninja.
Comment 1 bungeman 2015-11-28 03:27:19 UTC
https://bugs.kde.org/show_bug.cgi?id=353180 is an earlier report of cmake settings not being remembered. Being able to set these settings before opening a project depends on the settings being remembered first, so setting issue 353180 as dependency.
Comment 2 Justin Zobel 2021-03-09 22:48:30 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.