mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
generic: misc cleanups
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
164be8a066
commit
5036b62efc
2 changed files with 15 additions and 17 deletions
|
@ -72,6 +72,12 @@ set(DBUS_SYSTEM_SERVICES_INSTALL_DIR "@DBUS_SYSTEM_SERVICES_INSTALL_DIR@")
|
|||
set(KAUTH_HELPER_PLUGIN_DIR "@KAUTH_HELPER_PLUGIN_DIR@")
|
||||
set(KAUTH_BACKEND_PLUGIN_DIR "@KAUTH_BACKEND_PLUGIN_DIR@")
|
||||
|
||||
# someone made exception once and will be gone in future release
|
||||
set(DBUS_INTERFACES_DIR "@DBUS_INTERFACES_INSTALL_DIR@")
|
||||
set(DBUS_SERVICES_DIR "@DBUS_SERVICES_INSTALL_DIR@")
|
||||
set(KDE4_DBUS_INTERFACES_DIR "@DBUS_INTERFACES_INSTALL_DIR@")
|
||||
set(KDE4_DBUS_SERVICES_DIR "@DBUS_SERVICES_INSTALL_DIR@")
|
||||
|
||||
# This variable defines whether KPty::login/logout have been built with
|
||||
# utempter support so that they don't require special user permissions
|
||||
# in order to work properly. Used by kwrited.
|
||||
|
|
|
@ -349,11 +349,7 @@ else(_kdeBootStrapping)
|
|||
include(${kde_cmake_module_dir}/KDE4Version.cmake)
|
||||
|
||||
# Check the version of KDE. It must be at least KDE_MIN_VERSION as set by the user.
|
||||
# KDE_VERSION is set in KDE4Config.cmake since KDE 4.17.x.
|
||||
if(NOT KDE_MIN_VERSION)
|
||||
set(KDE_MIN_VERSION "4.18.0")
|
||||
endif()
|
||||
|
||||
# KDE_VERSION is set in KDE4Version.cmake since KDE 4.17.x.
|
||||
set(KDE4_INSTALLED_VERSION_OK FALSE)
|
||||
if(NOT "${KDE_VERSION}" VERSION_LESS "${KDE_MIN_VERSION}")
|
||||
set(KDE4_INSTALLED_VERSION_OK TRUE)
|
||||
|
@ -384,20 +380,16 @@ else(_kdeBootStrapping)
|
|||
foreach(dir ${_data_DIR})
|
||||
set(apath "${dir}/cmake/modules")
|
||||
if(EXISTS "${apath}")
|
||||
set (included 0)
|
||||
string(TOLOWER "${apath}" _apath)
|
||||
# ignore already added pathes, case insensitive
|
||||
foreach(adir ${CMAKE_MODULE_PATH})
|
||||
string(TOLOWER "${adir}" _adir)
|
||||
if ("${_adir}" STREQUAL "${_apath}")
|
||||
set (included 1)
|
||||
endif ("${_adir}" STREQUAL "${_apath}")
|
||||
endforeach(adir)
|
||||
if (NOT included)
|
||||
if (NOT "${_adir}" STREQUAL "${_apath}")
|
||||
message(STATUS "Adding ${apath} to CMAKE_MODULE_PATH")
|
||||
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${apath}")
|
||||
endif (NOT included)
|
||||
endif (EXISTS "${apath}")
|
||||
endif ("${_adir}" STREQUAL "${_apath}")
|
||||
endforeach()
|
||||
endif()
|
||||
endforeach(dir)
|
||||
|
||||
|
||||
|
@ -408,7 +400,7 @@ else(_kdeBootStrapping)
|
|||
# This export-file is generated and installed by the toplevel CMakeLists.txt of kdelibs.
|
||||
# Include it to "import" the libraries from kdelibs into the current projects as targets.
|
||||
# This makes setting the _LIBRARY and _LIBS variables actually a bit superfluos, since e.g.
|
||||
# the kdeui library could now also be used just as "KDE4__kdeui" and still have all their
|
||||
# the kdeui library could now also be used just as "KDE4::kdeui" and still have all their
|
||||
# dependent libraries handled correctly. But to keep compatibility and not to change
|
||||
# behaviour we set all these variables anyway as seen below. Alex
|
||||
include(${kde_cmake_module_dir}/KDELibs4LibraryTargets.cmake)
|
||||
|
|
Loading…
Add table
Reference in a new issue