CMake - fix bug with dropping changed settings for existing build directory
Summary:
Steps to reproduce:
- Open some CMake project
- Create some build directory if it is not created.
- Open advanced settings ("Show Advanced" button).
- Change some setting, for example "Build type".
- Press Ok/Apply.
- Result - CMake will run with OLD settings and all your changes will be lost.
Test Plan: Tested with master branch
Reviewers: KDevelop, apol
Reviewed By: KDevelop, apol
Subscribers: kdevelop-devel
Differential Revision: https://phabricator.kde.org/D5609
(cherry picked from commit 258f54087c96624ad735dfe4bd9d4246482c218a)
- Conflicts:
- projectmanagers/cmake/cmakeutils.cpp