Find kde4-config

Piotr Jaroszyński p.jaroszynski at gmail.com
Tue Jan 8 23:36:05 CET 2008


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/? Here, 
with KDEDIRS=/usr:/usr/local:/usr/kde/3.5:/usr/kde/4.0 and:
-rwxr-xr-x 1 root root 23384 2008-01-06 17:39 /usr/kde/4.0/bin/kde4-config
the check fails. It passes only when I put ' /usr/kde/4.0/bin/' in PATH.
Or did I misunderstand the 'PATH_SUFFIXES bin' comment?

-- 
Best Regards,
Piotr Jaroszyński


More information about the Kde-buildsystem mailing list