From 169746e8272e64f02754b9c553d5e880eff33509 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Mon, 25 Apr 2022 10:48:59 +0300 Subject: [PATCH] cmake: remove now unused GeoClue module Signed-off-by: Ivailo Monev --- cmake/modules/CMakeLists.txt | 1 - cmake/modules/FindGeoClue.cmake | 40 --------------------------------- 2 files changed, 41 deletions(-) delete mode 100644 cmake/modules/FindGeoClue.cmake diff --git a/cmake/modules/CMakeLists.txt b/cmake/modules/CMakeLists.txt index 4fbe46ea..be837fa5 100644 --- a/cmake/modules/CMakeLists.txt +++ b/cmake/modules/CMakeLists.txt @@ -30,7 +30,6 @@ set(cmakeFiles FindExiv2.cmake FindFFmpegThumbnailer.cmake FindFontconfig.cmake - FindGeoClue.cmake FindGettextPO.cmake FindGLIB2.cmake FindGMP.cmake diff --git a/cmake/modules/FindGeoClue.cmake b/cmake/modules/FindGeoClue.cmake deleted file mode 100644 index 7e9b272d..00000000 --- a/cmake/modules/FindGeoClue.cmake +++ /dev/null @@ -1,40 +0,0 @@ -# Try to find GeoClue, once done this will define: -# -# GEOCLUE_FOUND - system has GeoClue -# GEOCLUE_INCLUDES - the GeoClue include directory -# GEOCLUE_LIBRARIES - the libraries needed to use GeoClue -# -# Copyright (c) 2022 Ivailo Monev -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - -if(NOT WIN32) - include(FindPkgConfig) - pkg_check_modules(PC_GEOCLUE QUIET libgeoclue-2.0) - - set(GEOCLUE_INCLUDES ${PC_GEOCLUE_INCLUDE_DIRS}) - set(GEOCLUE_LIBRARIES ${PC_GEOCLUE_LIBRARIES}) -endif() - -set(GEOCLUE_VERSION ${PC_GEOCLUE_VERSION}) - -if(NOT GEOCLUE_INCLUDES OR NOT GEOCLUE_LIBRARIES) - find_path(GEOCLUE_INCLUDES - NAMES libgeoclue-2.0/gclue-simple.h - HINTS $ENV{GEOCLUEDIR}/include - ) - - find_library(GEOCLUE_LIBRARIES - NAMES geoclue-2 - HINTS $ENV{GEOCLUEDIR}/lib - ) -endif() - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(GeoClue - VERSION_VAR GEOCLUE_VERSION - REQUIRED_VARS GEOCLUE_LIBRARIES GEOCLUE_INCLUDES -) - -mark_as_advanced(GEOCLUE_INCLUDES GEOCLUE_LIBRARIES)