From e52adbfb2cc329cd721e0046bc73d5302f843a54 Mon Sep 17 00:00:00 2001 From: Jeremy Barton Date: Fri, 13 Nov 2015 10:16:06 -0800 Subject: [PATCH] Improve support for `brew install openssl` on OSX The test for algorithm_enc vs algorithms was using only the default includes path. Now it also includes the place where find_package found the openssl headers, so the test executes successfully, leading to a successful compilation. --- src/Native/System.Security.Cryptography.Native/configure.cmake | 2 ++ 1 file changed, 2 insertions(+) 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)