From f2c4b4528308b374342bf7da49ee67708308a88e Mon Sep 17 00:00:00 2001 From: XUranus <2257238649wdx@gmail.com> Date: Thu, 23 Nov 2023 22:21:45 +0800 Subject: [PATCH] require openssl 3 --- CMakeLists.txt | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 194da3c..a0ed542 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,6 +33,25 @@ message(STATUS "OPENSSL_CRYPTO_LIBRARIES = ${OPENSSL_CRYPTO_LIBRARIES}") message(STATUS "OPENSSL_SSL_LIBRARY = ${OPENSSL_SSL_LIBRARY}") message(STATUS "OPENSSL_SSL_LIBRARIES = ${OPENSSL_SSL_LIBRARIES}") + +set( + SEARCH_DIRS + "C:/vcpkg/packages/openssl_x64-windows/include" + "C:/vcpkg/packages/openssl_x64-windows/include/openssl" + "C:/vcpkg/packages/openssl_x64-windows/include/openssl/evp" +) +find_file(EVP_PATH + NAMES "evp.h" + PATHS ${SEARCH_DIRS} +) + +# Check if the file is found +if(EVP_PATH) + message("File found: ${EVP_PATH}") +else() + message("Evp File not found.") +endif() + # supress MSVC/GCC warnings if(${CMAKE_HOST_WIN32}) set(CMAKE_CXX_FLAGS_DEBUG "/MTd /Zi /Ob0 /Od /RTC1")