summaryrefslogtreecommitdiffstats
path: root/Modules/FindKDE3.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Modules/FindKDE3.cmake')
-rw-r--r--Modules/FindKDE3.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindKDE3.cmake b/Modules/FindKDE3.cmake
index e43c7db..b2e702c 100644
--- a/Modules/FindKDE3.cmake
+++ b/Modules/FindKDE3.cmake
@@ -113,7 +113,7 @@ FIND_PATH(KDE3_INCLUDE_DIR kpassdlg.h
)
#now the KDE library directory
-FIND_LIBRARY(KDE3_LIB_DIR NAMES kdecore
+FIND_LIBRARY(KDE3_KDECORE_LIBRARY NAMES kdecore
PATHS
$ENV{KDEDIR}/lib
/opt/kde/lib
@@ -122,6 +122,8 @@ FIND_LIBRARY(KDE3_LIB_DIR NAMES kdecore
/usr/local/lib
)
+GET_FILENAME_COMPONENT(KDE3_LIB_DIR ${KDE3_KDECORE_LIBRARY} PATH )
+
#now the KDE service types directory
#FIND_PATH(KDE3_SERVICETYPES_DIR ktexteditor.desktop
# $ENV{KDEDIR}/share/servicetypes/