From f50e0725a764502ec7e1e1f7f9fc0fcc7e813fbf Mon Sep 17 00:00:00 2001 From: Sergey Fedorov Date: Tue, 24 Jun 2025 17:58:18 +0800 Subject: [PATCH] Fix broken shared-mime-info search --- CMakeLists.txt | 2 +- cmake/modules/FindSharedMimeInfo.cmake | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59831dd5..95db3f32 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -120,7 +120,7 @@ set_package_properties(LibDeflate PROPERTIES PURPOSE "Compression and decompression of DEFLATE/zlib/gzip format" ) -find_package(SharedMimeInfo 0.91) +find_package(SharedMimeInfo) set_package_properties(SharedMimeInfo PROPERTIES DESCRIPTION "Shared Mime Info" URL "http://freedesktop.org/wiki/Software/shared-mime-info" diff --git a/cmake/modules/FindSharedMimeInfo.cmake b/cmake/modules/FindSharedMimeInfo.cmake index 3ff7f6aa..034f9e5e 100644 --- a/cmake/modules/FindSharedMimeInfo.cmake +++ b/cmake/modules/FindSharedMimeInfo.cmake @@ -12,17 +12,11 @@ # SHARED_MIME_INFO_MINIMUM_VERSION is set, the version specified in the find_package() # call takes precedence. - # Copyright (c) 2007, Pino Toscano, # # Redistribution and use is allowed according to the terms of the BSD license. # For details see the accompanying COPYING-CMAKE-SCRIPTS file. -# the minimum version of shared-mime-database we require -if(NOT SharedMimeInfo_FIND_VERSION) - set(SharedMimeInfo_FIND_VERSION "0.91") -endif() - find_program (UPDATE_MIME_DATABASE_EXECUTABLE NAMES update-mime-database) # Store the version number in the cache, so we don't have to search the next time again: