https://bugs.kde.org/show_bug.cgi?id=421621

--- Comment #4 from Thomas Fischer <fisc...@unix-ag.uni-kl.de> ---
(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.

Reply via email to