From 113b2b6b47d301e65388cba30ebff032fb7044e8 Mon Sep 17 00:00:00 2001 From: Volker Krause Date: Sat, 23 Feb 2019 10:06:21 +0100 Subject: [PATCH] Remove outdated FindGLIB2 copy Differential Revision: https://phabricator.kde.org/D19242 --- CMakeLists.txt | 2 +- cmake/FindGLIB2.cmake | 48 ------------------------------- containments/panel/CMakeLists.txt | 2 +- 3 files changed, 2 insertions(+), 50 deletions(-) delete mode 100644 cmake/FindGLIB2.cmake diff --git a/CMakeLists.txt b/CMakeLists.txt index 93009ac2..33656110 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,7 +9,7 @@ set(CMAKE_AUTOMOC ON) set(CMAKE_INCLUDE_CURRENT_DIR ON) -find_package(ECM 0.0.9 REQUIRED NO_MODULE) +find_package(ECM 5.41.0 REQUIRED NO_MODULE) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR} ${CMAKE_SOURCE_DIR}/cmake) include(KDEInstallDirs) diff --git a/cmake/FindGLIB2.cmake b/cmake/FindGLIB2.cmake deleted file mode 100644 index ebd1c550..00000000 --- a/cmake/FindGLIB2.cmake +++ /dev/null @@ -1,48 +0,0 @@ -# - Try to find the GLIB2 libraries -# Once done this will define -# -# GLIB2_FOUND - system has glib2 -# GLIB2_INCLUDE_DIR - the glib2 include directory -# GLIB2_LIBRARIES - glib2 library - -# Copyright (c) 2008 Laurent Montel, -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -if(GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES) - # Already in cache, be silent - set(GLIB2_FIND_QUIETLY TRUE) -endif(GLIB2_INCLUDE_DIR AND GLIB2_LIBRARIES) - -if (NOT WIN32) - find_package(PkgConfig REQUIRED) - pkg_check_modules(PKG_GLIB REQUIRED glib-2.0) -endif(NOT WIN32) - -find_path(GLIB2_MAIN_INCLUDE_DIR glib.h - PATH_SUFFIXES glib-2.0 - PATHS ${PKG_GLIB_INCLUDE_DIRS} ) - -# search the glibconfig.h include dir under the same root where the library is found -find_library(GLIB2_LIBRARIES - NAMES glib-2.0 - PATHS ${PKG_GLIB_LIBRARY_DIRS} ) - -find_path(GLIB2_INTERNAL_INCLUDE_DIR glibconfig.h - PATH_SUFFIXES glib-2.0/include ../lib/glib-2.0/include - PATHS ${PKG_GLIB_INCLUDE_DIRS} ${PKG_GLIB_LIBRARIES} ${CMAKE_SYSTEM_LIBRARY_PATH}) - -set(GLIB2_INCLUDE_DIR ${GLIB2_MAIN_INCLUDE_DIR}) - -# not sure if this include dir is optional or required -# for now it is optional -if(GLIB2_INTERNAL_INCLUDE_DIR) - set(GLIB2_INCLUDE_DIR ${GLIB2_INCLUDE_DIR} ${GLIB2_INTERNAL_INCLUDE_DIR}) -endif(GLIB2_INTERNAL_INCLUDE_DIR) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(GLIB2 DEFAULT_MSG GLIB2_LIBRARIES GLIB2_MAIN_INCLUDE_DIR) - -mark_as_advanced(GLIB2_INCLUDE_DIR GLIB2_LIBRARIES) diff --git a/containments/panel/CMakeLists.txt b/containments/panel/CMakeLists.txt index e3240305..7de0fd4c 100644 --- a/containments/panel/CMakeLists.txt +++ b/containments/panel/CMakeLists.txt @@ -10,7 +10,7 @@ target_link_libraries(plasma_applet_phonepanel Qt5::Gui KF5::Plasma KF5::I18n - ${GSTREAMER_LIBRARIES} ${GLIB2_LIBRARIES} ${GOBJECT_LIBRARIES}) + ${GSTREAMER_LIBRARIES} GLIB2::GLIB2 ${GOBJECT_LIBRARIES}) target_include_directories(plasma_applet_phonepanel PRIVATE "${GSTREAMER_INCLUDE_DIR}")