1
0
Fork 0
mirror of https://github.com/KingDuckZ/incredis synced 2024-11-23 00:33:46 +00:00

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

View file

@ -87,7 +87,11 @@ ELSEIF (CRYPTOPP_LIBRARY_RELEASE)
ENDIF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE) ENDIF (CRYPTOPP_LIBRARY_DEBUG AND CRYPTOPP_LIBRARY_RELEASE)
IF (CRYPTOPP_INCLUDE_DIR) 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}) IF (EXISTS ${_CRYPTOPP_VERSION_HEADER})
FILE ( FILE (