When I start cmake-gui, the “Where is the source code” field is empty, but “Where to build the binaries” still contains the binary directory used during the previous session.
Is this the expected behaviour?
It seems potentially unsafe or confusing because, after selecting a new source directory, the GUI still displays a binary directory associated with a previous and possibly unrelated project. A user could then configure the new project into the old project’s build tree. Indeed I’ve observed students often make this mistake.
I would expect one of the following behaviours:
- Both fields start empty (the binary-directory history remains available in the drop-down, but the editable field itself starts empty)
- Both source and binary directories are restored as a pair.
Before filing an issue, could someone confirm which behaviour is intended?
CMake version: 3.25.1 (also observed with CMake version 4.3.4)
Operating system: Debian 12 (also observed on Windows 11)