Eliminating $KDEDIR

Alexander Neundorf neundorf at kde.org
Mon Mar 20 18:23:29 CET 2006


On Monday 20 March 2006 17:47, Allen Winter wrote:
> Howdy,
>
> I've joined this list! Yeah!
>
> In cmake/modules/FindKDE4Internal.cmake you'll find code like the
> following:
>
>    find_library(KDE4_KXMLCORE_LIBRARY NAMES kxmlcore
>        PATHS
>        ${KDE4_LIB_INSTALL_DIR}
>       $ENV{KDEDIR}/lib
>        /opt/kde/lib
>        /opt/kde4/lib
>        /usr/lib
>    )
>
> I think the search into $ENV{KDEDIR}/lib should be removed since $KDEDIR
> should be no more in KDE4.
>
> ${KDE4_LIB_INSTALL_DIR} is relative to ${CMAKE_INSTALL_PREFIX} so
> I think we are safe to simply remove the $ENV{KDEDIR} stuff.

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 ?

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 ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list