[kdevelop] [Bug 421621] Setting CMAKE_INSTALL_PREFIX is not honoured when cmake is run

2023-11-21 Thread Gleb Popov
https://bugs.kde.org/show_bug.cgi?id=421621

Gleb Popov <6year...@gmail.com> changed:

   What|Removed |Added

 CC||6year...@gmail.com

--- Comment #5 from Gleb Popov <6year...@gmail.com> ---
I sort of bumped into this with following reproducing steps.

1. For a loaded and configured project "Open Configuration..."
2. Set custom CMAKE_INSTALL_PREFIX
3. Everything is fine...
4. ... until you change something in CMakeLists.txt
5. KDevelop detects the change and reconfigures the project with 

/usr/local/bin/cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
-DCMAKE_INSTALL_PREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug /path/to/project

This reverts my custom CMAKE_INSTALL_PREFIX setting to the default one.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 421621] Setting CMAKE_INSTALL_PREFIX is not honoured when cmake is run

2020-05-30 Thread Thomas Fischer
https://bugs.kde.org/show_bug.cgi?id=421621

--- Comment #4 from Thomas Fischer  ---
(In reply to Igor Kushnir from comment #3)
> I don't know if KDevelop's disregarding of CMAKE_INSTALL_PREFIX change in
> CMake Cache Values is a bug or an intentional feature (not particularly
> obvious or intuitive). Anyway, perhaps these settings shouldn't be labeled
> as "advanced" and should be visible by default...

Actually, there are three places where a user may enter CMAKE_INSTALL_PREFIX:
1. In the "Cache values"
2. In the "Advanced" section, visible only after pressing the button "Show
Advanced"
3. As an "Extra argument" in the form of "-DCMAKE_INSTALL_PREFIX=..."

Changing the path in the Advanced section (item 2 above), then applying the
change does change the value in the Cached values. In any other direction I
could not observe any effect.

My recommendations would be:
1. Have fields to enter an "Installation prefix" aka CMAKE_INSTALL_PREFIX at
only one place, not both at Cached Values and Advanced. Drop one (or link/sync
both).
2. In case the user enters "-DCMAKE_INSTALL_PREFIX=..." in the Extra arguments,
extract the path, apply it to the dedicated input widget, and remove
"-DCMAKE_INSTALL_PREFIX=..." remove from the Extra arguments.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 421621] Setting CMAKE_INSTALL_PREFIX is not honoured when cmake is run

2020-05-24 Thread Igor Kushnir
https://bugs.kde.org/show_bug.cgi?id=421621

Igor Kushnir  changed:

   What|Removed |Added

 CC||igor...@gmail.com

--- Comment #3 from Igor Kushnir  ---
There is the Show Advanced button under the CMake Cache Values view. Clicking
this button shows/hides additional CMake settings. One of these settings is
"Installation prefix", which probably overrides your manually configured
CMAKE_INSTALL_PREFIX cache value. Adjusting the path in this field should take
effect.

I don't know if KDevelop's disregarding of CMAKE_INSTALL_PREFIX change in CMake
Cache Values is a bug or an intentional feature (not particularly obvious or
intuitive). Anyway, perhaps these settings shouldn't be labeled as "advanced"
and should be visible by default...

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 421621] Setting CMAKE_INSTALL_PREFIX is not honoured when cmake is run

2020-05-17 Thread Thomas Fischer
https://bugs.kde.org/show_bug.cgi?id=421621

Thomas Fischer  changed:

   What|Removed |Added

   Platform|Other   |Gentoo Packages
Version|5.4.6   |5.5.1

--- Comment #2 from Thomas Fischer  ---
Just upgraded my Gentoo Linux package from 5.4.6 (stable) to 5.5.1 (unstable).
Same problem.

-- 
You are receiving this mail because:
You are watching all bug changes.

[kdevelop] [Bug 421621] Setting CMAKE_INSTALL_PREFIX is not honoured when cmake is run

2020-05-16 Thread Thomas Fischer
https://bugs.kde.org/show_bug.cgi?id=421621

--- Comment #1 from Thomas Fischer  ---
Created attachment 128519
  --> https://bugs.kde.org/attachment.cgi?id=128519=edit
Screenshot of the Configure CMake settings dialog showing
CMAKE_INSTALL_PREFIX=/tmp/usr

-- 
You are receiving this mail because:
You are watching all bug changes.