BUG: KDEDIRS contains the kde install locations, not the binary dirs, so
make KDEDIRS actually work in FindKDE4.cmake Alex
This commit is contained in:
parent
f55dd81190
commit
983e2a9a51
|
@ -13,6 +13,7 @@ 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}
|
||||
|
@ -20,10 +21,7 @@ FIND_PROGRAM(KDE4_KDECONFIG_EXECUTABLE NAMES kde4-config
|
|||
NO_DEFAULT_PATH
|
||||
)
|
||||
|
||||
|
||||
IF (NOT KDE4_KDECONFIG_EXECUTABLE)
|
||||
FIND_PROGRAM(KDE4_KDECONFIG_EXECUTABLE NAMES kde4-config )
|
||||
ENDIF (NOT KDE4_KDECONFIG_EXECUTABLE)
|
||||
|
||||
IF (KDE4_KDECONFIG_EXECUTABLE)
|
||||
# then ask kde4-config for the kde data dirs
|
||||
|
|
Loading…
Reference in New Issue