From 2ac739bde31a6de7642a475e24864625b2f971a2 Mon Sep 17 00:00:00 2001 From: Deve Date: Sat, 24 Nov 2018 23:20:27 +0100 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ae3307d9..dc34c20ea 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)