Eliminating $KDEDIR

Stephan Kulow coolo at kde.org
Mon Mar 20 18:33:08 CET 2006


Am Montag, 20. März 2006 18:23 schrieb Alexander Neundorf:

> KDE4_LIB_INSTALL_DIR is an absolute path and comes from the file
> KDELibsDependencies.cmake, which is installed by kdelibs.
>
> But, if *not* using KDEDIR, what's the recommended way for detecting the
> KDE4-version of kde-config ?
Can't that installed cmake file be generated?

>
> Let's say I want to install a KDE application, but not into the KDE4
> install dir (e.g. /opt/kde4), but into /usr/local. Then I would set
> CMAKE_INSTALL_PREFIX to /usr/local (which is the default).
>
> Then it would be required that the KDE4 binary dir is in the PATH, and that
> it is in the PATH before the KDE3 version of kde-config.
> With KDEDIR I could just set KDEDIR=/opt/kde4 and
> CMAKE_INSTALL_PREFIX=/usr/local, with having /opt/kde3 in the PATH but
> not /opt/kde4.
> How could this work without KDEDIR ?
Well, you could either rely on $PATH only or iterate over $KDEDIRS or both and
then check the output of kde-config -v

Greetings, Stephan



More information about the Kde-buildsystem mailing list