Explicitly check nettle/version.h, because it's not available in older versions.
NETTLE_INCLUDE_DIRS is not empty when at least one file is found, so it didn't guarantee that verion.h exists.
This commit is contained in:
parent
26b660531a
commit
2ac739bde3
@ -470,7 +470,7 @@ else()
|
||||
find_package(CURL REQUIRED)
|
||||
include_directories(${CURL_INCLUDE_DIRS})
|
||||
|
||||
find_path(NETTLE_INCLUDE_DIRS nettle/gcm.h nettle/sha.h nettle/base64.h nettle/version.h nettle/yarrow.h)
|
||||
find_path(NETTLE_INCLUDE_DIRS nettle/version.h)
|
||||
find_library(NETTLE_LIBRARY NAMES nettle libnettle)
|
||||
|
||||
if (NOT NETTLE_INCLUDE_DIRS OR NOT NETTLE_LIBRARY OR USE_CRYPTO_OPENSSL)
|
||||
|
Loading…
x
Reference in New Issue
Block a user