Small problem with PolkitQt
Alexander Neundorf
neundorf at kde.org
Sat Jan 23 20:58:02 CET 2010
On Saturday 23 January 2010, Dario Freddi wrote:
> Sorry for the delay. Here goes.
--- kdecore/auth/ConfigureChecks.cmake (revisione 1079059)
+++ kdecore/auth/ConfigureChecks.cmake (copia locale)
@@ -1,8 +1,11 @@
####### checks for kdecore/kauth ###############
-set(KAUTH_BACKEND "" CACHE STRING "Specifies the KAuth backend to build.
Current available options are
+set(KDE4_AUTH_BACKEND_NAME "" CACHE STRING "Specifies the KAuth backend to
build. Current available options are
PolkitQt, PolkitQt-1, Fake, Apple. Not
setting this variable will build the most
appropriate backend for your system")
+
+set(KAUTH_BACKEND ${KDE4_AUTH_BACKEND_NAME})
+
...
@@ -79,12 +84,20 @@
endif (KAUTH_BACKEND STREQUAL "POLKITQT-1")
endif(NOT KAUTH_BACKEND)
-# Add the correct libraries depending on the backend
-if(KAUTH_BACKEND STREQUAL "OSX")
+set(KDE4_AUTH_BACKEND_NAME ${KAUTH_BACKEND} CACHE STRING "Specifies the KAuth
backend to build. Current available options are
+ PolkitQt, PolkitQt-1, Fake, Apple. Not
setting this variable will build the most
+ appropriate backend for your system")
+
Why do you set KDE4_KAUTH_BACKEND_NAME twice, once at the beginning and once
at the end ?
The first one puts it already in the cache. If it is then already in the
cache, the second one does nothing.
Alex
More information about the Kde-buildsystem
mailing list