2012-01-19 21:28:05 +01:00
|
|
|
Fix finding kworkspace.h
|
2010-09-13 16:23:02 +02:00
|
|
|
diff --git a/plugins/shutdown/CMakeLists.txt b/plugins/shutdown/CMakeLists.txt
|
|
|
|
index 59e5470..5b932ff 100644
|
|
|
|
--- a/plugins/shutdown/CMakeLists.txt
|
|
|
|
+++ b/plugins/shutdown/CMakeLists.txt
|
|
|
|
@@ -1,6 +1,8 @@
|
|
|
|
set(KWORKSPACE_FOUND FALSE)
|
|
|
|
-FIND_PATH(KWORKSPACE_INCLUDE_DIR NAMES kworkspace.h PATHS ${KDE4_INCLUDE_DIR}/kworkspace ${INCLUDE_INSTALL_DIR}/kworkspace.h)
|
|
|
|
-FIND_LIBRARY(KWORKSPACE_LIBRARY NAMES kworkspace PATHS ${KDE4_LIB_DIR} ${LIB_INSTALL_DIR})
|
|
|
|
+FIND_PATH(KWORKSPACE_INCLUDE_DIR
|
|
|
|
+ NAMES kworkspace/kworkspace.h
|
|
|
|
+ HINTS ${KDE4_INCLUDE_DIR} ${INCLUDE_INSTALL_DIR})
|
|
|
|
+FIND_LIBRARY(KWORKSPACE_LIBRARY NAMES kworkspace HINTS ${KDE4_LIB_DIR} ${LIB_INSTALL_DIR})
|
|
|
|
|
|
|
|
if(KWORKSPACE_INCLUDE_DIR AND KWORKSPACE_LIBRARY)
|
|
|
|
set(KWORKSPACE_FOUND TRUE)
|
|
|
|
diff --git a/plugins/shutdown/shutdownplugin.cpp b/plugins/shutdown/shutdownplugin.cpp
|
|
|
|
index e233353..1efc20b 100644
|
|
|
|
--- a/plugins/shutdown/shutdownplugin.cpp
|
|
|
|
+++ b/plugins/shutdown/shutdownplugin.cpp
|
|
|
|
@@ -19,7 +19,7 @@
|
|
|
|
***************************************************************************/
|
|
|
|
#include <kjob.h>
|
|
|
|
#include <kgenericfactory.h>
|
|
|
|
-#include <kworkspace.h>
|
|
|
|
+#include <kworkspace/kworkspace.h>
|
|
|
|
#include <ktoggleaction.h>
|
|
|
|
#include <kactioncollection.h>
|
|
|
|
#include <kmessagebox.h>
|