diff options
author | Dario Freddi <drf@kde.org> | 2009-11-27 14:36:29 +0000 |
---|---|---|
committer | Dario Freddi <drf@kde.org> | 2009-11-27 14:36:29 +0000 |
commit | 5de80f62cd5cf81df29334e14b81696f8764b8d6 (patch) | |
tree | e95296e792d108b0c8bbf896b6d2539e8fea948b | |
parent | c8ff15f718ab374ac2f30721256b42ee9c73f17f (diff) | |
download | extra-cmake-modules-5de80f62cd5cf81df29334e14b81696f8764b8d6.tar.gz extra-cmake-modules-5de80f62cd5cf81df29334e14b81696f8764b8d6.tar.bz2 |
CCMAIL: neundorf@kde.org
Fixing naming mess in polkitqt-1 cmake files. Renaming all the according variables to
POLKITQT-1_* for consistency with the so name of the library (polkit-qt-1). Again for
consistency, rename the KAUTH_BACKEND of polkitqt-1 to PolkitQt-1 instead of PolkitQt1.
This time it works :)
svn path=/trunk/KDE/kdelibs/; revision=1055185
-rw-r--r-- | modules/FindPolkitQt-1.cmake | 78 |
1 files changed, 39 insertions, 39 deletions
diff --git a/modules/FindPolkitQt-1.cmake b/modules/FindPolkitQt-1.cmake index 357552b0..b9b73cd7 100644 --- a/modules/FindPolkitQt-1.cmake +++ b/modules/FindPolkitQt-1.cmake @@ -1,74 +1,74 @@ -# - Try to find Polkit-qt-1 +# - Try to find PolkitQt-1 # Once done this will define # -# POLKITQT_1_FOUND - system has Polkit-qt -# POLKITQT_1_INCLUDE_DIR - the Polkit-qt include directory -# POLKITQT_1_LIBRARIES - Link these to use all Polkit-qt libs -# POLKITQT_1_CORE_LIBRARY - Link this to use the polkit-qt-core library only -# POLKITQT_1_GUI_LIBRARY - Link this to use GUI elements in polkit-qt (polkit-qt-gui) -# POLKITQT_1_AGENT_LIBRARY - Link this to use the agent wrapper in polkit-qt -# POLKITQT_1_DEFINITIONS - Compiler switches required for using Polkit-qt +# POLKITQT-1_FOUND - system has Polkit-qt +# POLKITQT-1_INCLUDE_DIR - the Polkit-qt include directory +# POLKITQT-1_LIBRARIES - Link these to use all Polkit-qt libs +# POLKITQT-1_CORE_LIBRARY - Link this to use the polkit-qt-core library only +# POLKITQT-1_GUI_LIBRARY - Link this to use GUI elements in polkit-qt (polkit-qt-gui) +# POLKITQT-1_AGENT_LIBRARY - Link this to use the agent wrapper in polkit-qt +# POLKITQT-1_DEFINITIONS - Compiler switches required for using Polkit-qt # Copyright (c) 2009, Dario Freddi, <drf@kde.org> # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -if (POLKITQT_1_INCLUDE_DIR AND POLKITQT_1_LIB) - set(POLKITQT_1_FIND_QUIETLY TRUE) -endif (POLKITQT_1_INCLUDE_DIR AND POLKITQT_1_LIB) +if (POLKITQT-1_INCLUDE_DIR AND POLKITQT-1_LIB) + set(POLKITQT-1_FIND_QUIETLY TRUE) +endif (POLKITQT-1_INCLUDE_DIR AND POLKITQT-1_LIB) -if (NOT POLKITQT_1_MIN_VERSION) - set(POLKITQT_1_MIN_VERSION "0.95.0") -endif (NOT POLKITQT_1_MIN_VERSION) +if (NOT POLKITQT-1_MIN_VERSION) + set(POLKITQT-1_MIN_VERSION "0.95.0") +endif (NOT POLKITQT-1_MIN_VERSION) if (NOT WIN32) # use pkg-config to get the directories and then use these values # in the FIND_PATH() and FIND_LIBRARY() calls find_package(PkgConfig) - pkg_check_modules(PC_POLKITQT_1 QUIET polkit-qt-1) - set(POLKITQT_1_DEFINITIONS ${PC_POLKITQT_1_CFLAGS_OTHER}) + pkg_check_modules(PC_POLKITQT-1 QUIET polkit-qt-1) + set(POLKITQT-1_DEFINITIONS ${PC_POLKITQT-1_CFLAGS_OTHER}) endif (NOT WIN32) -find_path( POLKITQT_1_INCLUDE_DIR +find_path( POLKITQT-1_INCLUDE_DIR NAMES PolkitQt/authority.h PATH_SUFFIXES polkit-qt-1 ) -find_library( POLKITQT_1_CORE_LIBRARY +find_library( POLKITQT-1_CORE_LIBRARY NAMES polkit-qt-core-1 - HINTS ${PC_POLKITQT_1_LIBDIR} + HINTS ${PC_POLKITQT-1_LIBDIR} ) -find_library( POLKITQT_1_GUI_LIBRARY +find_library( POLKITQT-1_GUI_LIBRARY NAMES polkit-qt-gui-1 - HINTS ${PC_POLKITQT_1_LIBDIR} + HINTS ${PC_POLKITQT-1_LIBDIR} ) -find_library( POLKITQT_1_AGENT_LIBRARY +find_library( POLKITQT-1_AGENT_LIBRARY NAMES polkit-qt-agent-1 - HINTS ${PC_POLKITQT_1_LIBDIR} + HINTS ${PC_POLKITQT-1_LIBDIR} ) -set(POLKITQT_1_LIBRARIES ${POLKITQT_1_GUI_LIBRARY} ${POLKITQT_1_CORE_LIBRARY} ${POLKITQT_1_AGENT_LIBRARY}) +set(POLKITQT-1_LIBRARIES ${POLKITQT-1_GUI_LIBRARY} ${POLKITQT-1_CORE_LIBRARY} ${POLKITQT-1_AGENT_LIBRARY}) include(FindPackageHandleStandardArgs) -# handle the QUIETLY and REQUIRED arguments and set POLKITQT_1_FOUND to TRUE if +# handle the QUIETLY and REQUIRED arguments and set POLKITQT-1_FOUND to TRUE if # all listed variables are TRUE -find_package_handle_standard_args(PolkitQt-1 DEFAULT_MSG POLKITQT_1_LIBRARIES POLKITQT_1_INCLUDE_DIR) +find_package_handle_standard_args(PolkitQt-1 DEFAULT_MSG POLKITQT-1_LIBRARIES POLKITQT-1_INCLUDE_DIR) -mark_as_advanced(POLKITQT_1_INCLUDE_DIR POLKITQT_1_CORE_LIBRARY POLKITQT_1_GUI_LIBRARY POLKITQT_1_LIBRARIES) +mark_as_advanced(POLKITQT-1_INCLUDE_DIR POLKITQT-1_CORE_LIBRARY POLKITQT-1_GUI_LIBRARY POLKITQT-1_LIBRARIES) -if (POLKITQT_1_FOUND) - if (PC_POLKITQT_1_VERSION VERSION_LESS POLKITQT_1_MIN_VERSION) - message(STATUS "Found Polkit-Qt-1 release < ${POLKITQT_1_MIN_VERSION}") - message(STATUS "You need Polkit-Qt-1 version ${POLKITQT_1_MIN_VERSION} or newer to compile this component") - set(POLKITQT_1_FOUND FALSE) +if (POLKITQT-1_FOUND) + if (PC_POLKITQT-1_VERSION VERSION_LESS POLKITQT-1_MIN_VERSION) + message(STATUS "Found PolkitQt-1 release < ${POLKITQT-1_MIN_VERSION}") + message(STATUS "You need PolkitQt-1 version ${POLKITQT-1_MIN_VERSION} or newer to compile this component") + set(POLKITQT-1_FOUND FALSE) return() - else (PC_POLKITQT_1_VERSION VERSION_LESS POLKITQT_1_MIN_VERSION) - if ( NOT PC_POLKITQT_1_PREFIX STREQUAL CMAKE_INSTALL_PREFIX ) + else (PC_POLKITQT-1_VERSION VERSION_LESS POLKITQT-1_MIN_VERSION) + if ( NOT PC_POLKITQT-1_PREFIX STREQUAL CMAKE_INSTALL_PREFIX ) message("WARNING: Installation prefix does not match PolicyKit install prefixes. You probably will need to move files installed " - "in POLICY_FILES_INSTALL_DIR and by dbus_add_activation_system_service to the ${PC_POLKITQT_1_PREFIX} prefix") - endif (NOT PC_POLKITQT_1_PREFIX STREQUAL CMAKE_INSTALL_PREFIX) - endif (PC_POLKITQT_1_VERSION VERSION_LESS POLKITQT_1_MIN_VERSION) -endif (POLKITQT_1_FOUND) + "in POLICY_FILES_INSTALL_DIR and by dbus_add_activation_system_service to the ${PC_POLKITQT-1_PREFIX} prefix") + endif (NOT PC_POLKITQT-1_PREFIX STREQUAL CMAKE_INSTALL_PREFIX) + endif (PC_POLKITQT-1_VERSION VERSION_LESS POLKITQT-1_MIN_VERSION) +endif (POLKITQT-1_FOUND) -set(POLKITQT_1_POLICY_FILES_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/polkit-1/actions) +set(POLKITQT-1_POLICY_FILES_INSTALL_DIR ${CMAKE_INSTALL_PREFIX}/share/polkit-1/actions) |