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.
This commit is contained in:
King_DuckZ 2021-05-02 13:47:15 +02:00
parent 3eaa09f3d8
commit ead1736e55
1 changed files with 5 additions and 1 deletions

View File

@ -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 (