<commit_before>From b0e0593b5d690d760df77b325bfc7c575d2d6aa7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <<EMAIL>>
Date: Mon, 9 Mar 2020 23:05:16 +0100
Subject: [PATCH] Find libgmp with pkgconfig
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Choose old-school pkgconfig instead of try_run crap

Upstream-Status: Pending

Signed-off-by: <NAME> <<EMAIL>>
---
 CMakeLists.txt            | 3 ++-
 KF5TorrentConfig.cmake.in | 1 -
 src/CMakeLists.txt        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 98f8158..858a437 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -66,7 +66,8 @@ find_package(KF5 "${KF5_MIN_VERSION}" REQUIRED COMPONENTS
 )
 
 find_package(Boost "${Boost_MIN_VERSION}" MODULE REQUIRED)
-find_package(LibGMP "${LibGMP_MIN_VERSION}" REQUIRED)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(LibGMP REQUIRED gmp>=${LibGMP_MIN_VERSION})
 find_package(LibGcrypt "${LibGcrypt_MIN_VERSION}" REQUIRED)
 find_package(Qca-qt5 CONFIG REQUIRED)
 
diff --git a/KF5TorrentConfig.cmake.in b/KF5TorrentConfig.cmake.in
index d40dc0b..b593917 100644
--- a/KF5TorrentConfig.cmake.in
+++ b/KF5TorrentConfig.cmake.in
@@ -10,7 +10,6 @@ find_dependency(Qt5Core "@QT_MIN_VERSION@")
 find_dependency(Qt5Network "@QT_MIN_VERSION@")
 
 find_dependency(Boost "@Boost_MIN_VERSION@")
-find_dependency(LibGMP "@LibGMP_MIN_VERSION@")
 find_dependency(LibGcrypt "@LibGcrypt_MIN_VERSION@")
 
 include("${CMAKE_CURRENT_LIST_DIR}/KF5TorrentTargets.cmake")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cecf522..1a5596b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -237,7 +237,7 @@ PUBLIC
     KF5::I18n
     Qt5::Xml
     LibGcrypt::LibGcrypt
-    LibGMP::LibGMP
+    gmp
 )
 
 if(WIN32)
-- 
2.26.2
<commit_msg>libktorrent: Fix patch fuzz<commit_after>From b0e0593b5d690d760df77b325bfc7c575d2d6aa7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andreas=20M=C3=BCller?= <<EMAIL>>
Date: Mon, 9 Mar 2020 23:05:16 +0100
Subject: [PATCH] Find libgmp with pkgconfig
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Choose old-school pkgconfig instead of try_run crap

Upstream-Status: Pending

Signed-off-by: <NAME> <<EMAIL>>
---
 CMakeLists.txt            | 3 ++-
 KF5TorrentConfig.cmake.in | 1 -
 src/CMakeLists.txt        | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 26412ba..46ff534 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -69,7 +69,8 @@ find_package(KF5 "${KF5_MIN_VERSION}" REQUIRED COMPONENTS
 )
 
 find_package(Boost "${Boost_MIN_VERSION}" MODULE REQUIRED)
-find_package(LibGMP "${LibGMP_MIN_VERSION}" REQUIRED)
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(LibGMP REQUIRED gmp>=${LibGMP_MIN_VERSION})
 find_package(LibGcrypt "${LibGcrypt_MIN_VERSION}" REQUIRED)
 find_package(Qca-qt5 CONFIG REQUIRED)
 
diff --git a/KF5TorrentConfig.cmake.in b/KF5TorrentConfig.cmake.in
index d40dc0b..b593917 100644
--- a/KF5TorrentConfig.cmake.in
+++ b/KF5TorrentConfig.cmake.in
@@ -10,7 +10,6 @@ find_dependency(Qt5Core "@QT_MIN_VERSION@")
 find_dependency(Qt5Network "@QT_MIN_VERSION@")
 
 find_dependency(Boost "@Boost_MIN_VERSION@")
-find_dependency(LibGMP "@LibGMP_MIN_VERSION@")
 find_dependency(LibGcrypt "@LibGcrypt_MIN_VERSION@")
 
 include("${CMAKE_CURRENT_LIST_DIR}/KF5TorrentTargets.cmake")
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index cecf522..1a5596b 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -244,7 +244,7 @@ PUBLIC
     Qt5::Xml
     Boost::boost
     LibGcrypt::LibGcrypt
-    LibGMP::LibGMP
+    gmp
 )
 
 if(WIN32)
-- 
2.26.2

{'fraction_non_alphanumeric': 0.14132475194422098, 'fraction_numerical': 0.08071869133816037, 'mean_word_length': 4.958466453674121, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2563890', 'n_tokens_mistral': 1782, 'n_tokens_neox': 1494, 'n_words': 261}