From ead1736e554fad2639dc70fd9189d1077ae59a3d Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sun, 2 May 2021 13:47:15 +0200 Subject: [PATCH] Update cmake find script At least on Arch, I think the config.h has been split into smaller files and version number is in its own file now. --- cmake/Modules/FindCryptoPP.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/cmake/Modules/FindCryptoPP.cmake b/cmake/Modules/FindCryptoPP.cmake index 9a3b6a3..2ce5ff5 100644 --- a/cmake/Modules/FindCryptoPP.cmake +++ b/cmake/Modules/FindCryptoPP.cmake @@ -87,7 +87,11 @@ ELSEIF (CRYPTOPP_LIBRARY_RELEASE) ENDIF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE) IF (CRYPTOPP_INCLUDE_DIR) - SET (_CRYPTOPP_VERSION_HEADER ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config.h) + IF (EXISTS ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config_ver.h) + SET (_CRYPTOPP_VERSION_HEADER ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config_ver.h) + ELSE(EXISTS ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config_ver.h) + SET (_CRYPTOPP_VERSION_HEADER ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config.h) + ENDIF(EXISTS ${CRYPTOPP_INCLUDE_DIR}/cryptopp/config_ver.h) IF (EXISTS ${_CRYPTOPP_VERSION_HEADER}) FILE (