From 98348922856154007595361af75f68068e24f116 Mon Sep 17 00:00:00 2001 From: Justin W Smith <103147162+justsmth@users.noreply.github.com> Date: Fri, 8 Dec 2023 09:50:53 -0500 Subject: [PATCH] CMake/CRYPTO - set CMAKE_REQUIRED_INCLUDES --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 03d4c27f5..83b4a285c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -828,7 +828,8 @@ if(WITH_CRYPTO) # # Check for some headers and functions. # - check_include_file(openssl/evp.h HAVE_OPENSSL_EVP_H) + set(CMAKE_REQUIRED_INCLUDES "${CRYPTO_INCLUDE_DIR}") + check_include_file("openssl/evp.h" HAVE_OPENSSL_EVP_H) # # 1) do we have EVP_CIPHER_CTX_new?