Find kde4-config
Alexander Neundorf
neundorf at kde.org
Wed Jan 9 00:31:40 CET 2008
On Tuesday 08 January 2008, Piotr Jaroszyński wrote:
> Hello,
>
> pasting the check from /usr/share/cmake/Modules/FindKDE4.cmake for
> reference:
>
> FILE(TO_CMAKE_PATH "$ENV{KDEDIRS}" _KDEDIRS)
>
> # For KDE4 kde-config has been renamed to kde4-config
> FIND_PROGRAM(KDE4_KDECONFIG_EXECUTABLE NAMES kde4-config
> PATH_SUFFIXES bin # the suffix is for the paths coming
> from KDEDIRS
> PATHS
> ${CMAKE_INSTALL_PREFIX}/bin
> ${_KDEDIRS}
> /opt/kde4/bin
> NO_DEFAULT_PATH
> )
>
> Shouldn't that search for kde4-config in each of the ${_KDEDIRS} + bin/?
Yes, and it works here for me.
In CMake 2.4.3...2.4.7 the PATH_SUFFIXES is missing (-> bug), in the really
very soon to be released CMake 2.4.8 this is fixed with the PATH_SUFFIXES
argument, and also in cmake cvs.
Which version are you using ?
The directory /usr/share/cmake/Modules/ should have a version number embedded.
Alex
More information about the Kde-buildsystem
mailing list