diff --git a/src/Native/System.Security.Cryptography.Native/configure.cmake b/src/Native/System.Security.Cryptography.Native/configure.cmake index c8576403e272..a80f454687a9 100644 --- a/src/Native/System.Security.Cryptography.Native/configure.cmake +++ b/src/Native/System.Security.Cryptography.Native/configure.cmake @@ -1,6 +1,8 @@ include(CheckLibraryExists) include(CheckStructHasMember) +set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR}) + # Check which versions of TLS the OpenSSL/ssl library supports check_library_exists(${OPENSSL_SSL_LIBRARY} "TLSv1_1_method" "" HAVE_TLS_V1_1) check_library_exists(${OPENSSL_SSL_LIBRARY} "TLSv1_2_method" "" HAVE_TLS_V1_2)