We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 519a3f6 commit 4d70020Copy full SHA for 4d70020
cmake/Modules/FindCRYPTO.cmake
@@ -6,7 +6,19 @@
6
find_path(CRYPTO_INCLUDE_DIR openssl/crypto.h)
7
8
# Try to find the library
9
-find_library(CRYPTO_LIBRARY crypto)
+if(NOT MSVC)
10
+ find_library(CRYPTO_LIBRARY crypto)
11
+else()
12
+ if(USE_STATIC_RT)
13
+ set(OPENSSL_MSVC_STATIC_RT 1)
14
+ endif()
15
+ find_package(OpenSSL QUIET)
16
+ # going the extra mile...
17
+ set(CRYPTO_LIBRARY_RELEASE ${LIB_EAY_RELEASE})
18
+ set(CRYPTO_LIBRARY_DEBUG ${LIB_EAY_DEBUG})
19
+ include(SelectLibraryConfigurations)
20
+ select_library_configurations(CRYPTO)
21
+endif()
22
23
include(FindPackageHandleStandardArgs)
24
find_package_handle_standard_args(CRYPTO
0 commit comments