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

            Bug ID: 395627
           Summary: CMAKE_{PREFIX,MODULE}_PATH not set at all
           Product: kdesrc-build
           Version: Git
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: mp...@kde.org
          Reporter: kde...@posteo.de
  Target Milestone: ---

I set up a new KDE dev environment with an adapted kdesrc-buildrc file that
used to work (see below). When I invoke "kdesrc-build kde/pim",
CMAKE_PREFIX_PATH is already set. However, in the build directory created by
kdesrc-build, that variable is set to "/usr" in the CMake env, as revealed by
"ccmake ." or "grep -R CMAKE_PREFIX_PATH".

As a consequence, all KF5*_DIR variables are set to /usr/lib64/cmake/..., and
building, e.g., kmail fails because of an API break in kontactinterface.

I also tried (all?) combinations of --include-dependencies and adding
"-DCMAKE_PREFIX_PATH" to cmake-options in kdesrc-buildrc, to no avail. The
CMAKE_BUILD_TYPE, however, is correctly set; I set this one as a cmake-option
in the same line in kdesrc-buildrc, see below. After each config change, I ran
"kdesrc-build --rc-file=<the-one-below> kmail".

I can fix the build failure of kmail by simply setting KF5KontactInterface_DIR
manually. However, this does not scale for all those dependencies in all the
PIM projects.

This is my current kdesrc-buildrc:

global
    branch-group stable-kf5-qt5
    qtdir /usr

    source-dir /home/denis/kde/stable/src
    build-dir  /home/denis/kde/stable/build
    log-dir    /home/denis/kde/stable/log
    kdedir     /home/denis/kde/stable/usr

    ignore-kde-structure true
    cmake-options -DCMAKE_BUILD_TYPE=Debug
-DCMAKE_PREFIX_PATH=/home/denis/kde/stable/usr
    make-options -j9
end global

include /home/denis/kde/master/src/kdesrc-build/kf5-qt5-build-include

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

Reply via email to