@@ -71,11 +71,11 @@ endif()
71
71
72
72
if (WIN32 )
73
73
if (IS_DIRECTORY "${OPENSSL_ROOT_DIR} /build/native/" )
74
- set (NUGET TRUE )
74
+ set (SSL_NUGET TRUE )
75
75
else ()
76
- set (NUGET FALSE )
76
+ set (SSL_NUGET FALSE )
77
77
endif ()
78
- if (OPENSSL_ROOT_DIR AND NUGET )
78
+ if (OPENSSL_ROOT_DIR AND SSL_NUGET )
79
79
message ("Found nuGET installation of OpenSSL!" )
80
80
set (SSL_BITS "x64" )
81
81
# its an openssl downloaded via nuget!
@@ -130,28 +130,23 @@ find_path(OPENSSL_INCLUDE_DIR
130
130
)
131
131
132
132
if (WIN32 AND NOT CYGWIN )
133
- if (NUGET )
133
+ if (SSL_NUGET )
134
134
# /MD and /MDd are the standard values - if someone wants to use
135
135
# others, the libnames have to change here too
136
136
# use also ssl and ssleay32 in debug as fallback for openssl < 0.9.8b
137
137
# enable OPENSSL_MSVC_STATIC_RT to get the libs build /MT (Multithreaded no-DLL)
138
- # In Visual C++ naming convention each of these four kinds of Windows libraries has it's standard suffix:
139
- # * MD for dynamic-release
140
- # * MDd for dynamic-debug
141
- # * MT for static-release
142
- # * MTd for static-debug
143
138
144
139
# Implementation details:
145
140
# We are using the libraries located in the VC subdir instead of the parent directory eventhough :
146
141
# libeay32MD.lib is identical to ../libeay32.lib, and
147
142
# ssleay32MD.lib is identical to ../ssleay32.lib
148
143
# enable OPENSSL_USE_STATIC_LIBS to use the static libs located in lib/VC/static
149
144
150
- if (OPENSSL_MSVC_STATIC_RT )
151
- set (_OPENSSL_MSVC_RT_MODE "MT" )
152
- else ()
153
- set (_OPENSSL_MSVC_RT_MODE "MD" )
154
- endif ()
145
+ # if (OPENSSL_MSVC_STATIC_RT)
146
+ # set(_OPENSSL_MSVC_RT_MODE "MT")
147
+ # else ()
148
+ # set(_OPENSSL_MSVC_RT_MODE "MD")
149
+ # endif ()
155
150
156
151
set (LIB_EAY_DEBUG LIB_EAY_DEBUG-NOTFOUND )
157
152
if (EXISTS "${OPENSSL_LIB_DIR} /debug/libeay32.lib" )
@@ -187,6 +182,7 @@ if(WIN32 AND NOT CYGWIN)
187
182
set (OPENSSL_SSL_LIBRARY ${SSL_EAY_LIBRARY} )
188
183
set (OPENSSL_CRYPTO_LIBRARY ${LIB_EAY_LIBRARY} )
189
184
set (OPENSSL_LIBRARIES ${SSL_EAY_LIBRARY} ${LIB_EAY_LIBRARY} )
185
+
190
186
elseif (MSVC )
191
187
# /MD and /MDd are the standard values - if someone wants to use
192
188
# others, the libnames have to change here too
@@ -451,7 +447,6 @@ else ()
451
447
endif ()
452
448
453
449
mark_as_advanced (OPENSSL_INCLUDE_DIR OPENSSL_LIBRARIES )
454
-
455
450
if (OPENSSL_FOUND )
456
451
if (NOT TARGET OpenSSL::Crypto AND
457
452
(EXISTS "${OPENSSL_CRYPTO_LIBRARY} " OR
0 commit comments