File 0002-Don-t-try-to-install-files-outside-CMAKE_INSTALL_PRE.patch of Package polkit-kde-agent-5

From 15e55a4ee14d93343aa07615034718a39fbcc222 Mon Sep 17 00:00:00 2001
From: "Yury G. Kudryashov" <urkud.urkud@gmail.com>
Date: Thu, 18 Aug 2011 02:01:12 +0400
Subject: [PATCH 1/1] Don't try to install files outside CMAKE_INSTALL_PREFIX

KDE4_AUTOSTART_INSTALL_DIR points to kdelibs prefix,
not current CMAKE_INSTALL_PREFIX. Use AUTOSTART_INSTALL_DIR instead.
---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8953a6..f79b88f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -34,6 +34,6 @@ configure_file(polkit-kde-authentication-agent-1.desktop.in ${CMAKE_BINARY_DIR}/
 
 install(TARGETS polkit-kde-authentication-agent-1 DESTINATION ${LIBEXEC_INSTALL_DIR})
 
-install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${KDE4_AUTOSTART_INSTALL_DIR})
+install(FILES ${CMAKE_BINARY_DIR}/polkit-kde-authentication-agent-1.desktop DESTINATION ${AUTOSTART_INSTALL_DIR})
 
 install(FILES policykit1-kde.notifyrc DESTINATION ${DATA_INSTALL_DIR}/policykit1-kde)
-- 
1.9.3

openSUSE Build Service is sponsored by