mirror of
https://github.com/PabloMK7/citra.git
synced 2024-11-24 00:14:16 +00:00
externals: fix find Crypto++ (#7189)
Co-authored-by: Martino Fontana <tinozzo123@gmail.com>
This commit is contained in:
parent
ca6dae1744
commit
98f17f8f04
1 changed files with 4 additions and 5 deletions
9
externals/cmake-modules/Findcryptopp.cmake
vendored
9
externals/cmake-modules/Findcryptopp.cmake
vendored
|
@ -1,20 +1,19 @@
|
||||||
if(NOT CRYPTOPP_FOUND)
|
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
|
find_path(CRYPTOPP_INCLUDE_DIRS NAMES cryptlib.h
|
||||||
PATHS
|
PATHS
|
||||||
${CRYPTOPP_TMP_INCLUDE_DIRS}
|
${CRYPTOPP_TMP_INCLUDE_DIRS}
|
||||||
/usr/include
|
/usr/include
|
||||||
/usr/include/crypto++
|
|
||||||
/usr/local/include
|
/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
|
PATHS
|
||||||
${CRYPTOPP_TMP_LIBRARY_DIRS}
|
${CRYPTOPP_TMP_LIBRARY_DIRS}
|
||||||
/usr/lib
|
/usr/lib
|
||||||
/usr/locallib
|
/usr/local/lib
|
||||||
)
|
)
|
||||||
|
|
||||||
if(CRYPTOPP_INCLUDE_DIRS AND CRYPTOPP_LIBRARY_DIRS)
|
if(CRYPTOPP_INCLUDE_DIRS AND CRYPTOPP_LIBRARY_DIRS)
|
||||||
|
|
Loading…
Reference in a new issue