Skip to content

Commit

Permalink
require openssl 3
Browse files Browse the repository at this point in the history
  • Loading branch information
XUranus committed Nov 23, 2023
1 parent 28629ab commit f2c4b45
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit f2c4b45

Please sign in to comment.