Skip to content

Commit

Permalink
externals: fix find Crypto++ (#7189)
Browse files Browse the repository at this point in the history
Co-authored-by: Martino Fontana <tinozzo123@gmail.com>
  • Loading branch information
SuperSamus and SuperSamus authored Nov 20, 2023
1 parent ca6dae1 commit 98f17f8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions externals/cmake-modules/Findcryptopp.cmake
Original file line number Diff line number Diff line change
@@ -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)
Expand Down

0 comments on commit 98f17f8

Please sign in to comment.