From 98f17f8f040f6a0804c848bd23ffc7e03c4457f0 Mon Sep 17 00:00:00 2001 From: SuperSamus <40663462+SuperSamus@users.noreply.github.com> Date: Mon, 20 Nov 2023 13:07:41 +0100 Subject: [PATCH] externals: fix find Crypto++ (#7189) Co-authored-by: Martino Fontana --- externals/cmake-modules/Findcryptopp.cmake | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/externals/cmake-modules/Findcryptopp.cmake b/externals/cmake-modules/Findcryptopp.cmake index eb17bed1d..5e621b364 100644 --- a/externals/cmake-modules/Findcryptopp.cmake +++ b/externals/cmake-modules/Findcryptopp.cmake @@ -1,20 +1,19 @@ if(NOT CRYPTOPP_FOUND) - pkg_check_modules(CRYPTOPP_TMP libcrypto++) + pkg_search_module(CRYPTOPP_TMP crypto++ cryptopp) find_path(CRYPTOPP_INCLUDE_DIRS NAMES cryptlib.h PATHS ${CRYPTOPP_TMP_INCLUDE_DIRS} /usr/include - /usr/include/crypto++ /usr/local/include - /usr/local/include/crypto++ + PATH_SUFFIXES crypto++ cryptopp ) - find_library(CRYPTOPP_LIBRARY_DIRS NAMES crypto++ + find_library(CRYPTOPP_LIBRARY_DIRS NAMES crypto++ cryptopp PATHS ${CRYPTOPP_TMP_LIBRARY_DIRS} /usr/lib - /usr/locallib + /usr/local/lib ) if(CRYPTOPP_INCLUDE_DIRS AND CRYPTOPP_LIBRARY_DIRS)