You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Now if we do find_package(OpenSSL) it should give us BoringSSL.
245
-
find_package(OpenSSL)
246
-
247
-
if(NOT"${OPENSSL_INCLUDE_DIR}"MATCHES boringssl OR
248
-
NOT"${OPENSSL_SSL_LIBRARY}"MATCHES boringssl OR
249
-
NOT"${OPENSSL_CRYPTO_LIBRARY}"MATCHES boringssl)
250
-
message(FATAL_ERROR "BoringSSL was not configured correctly.\nINCLUDE_DIR=${OPENSSL_INCLUDE_DIR}\nSSL_LIBRARY=${OPENSSL_SSL_LIBRARY}\nCRYPTO_LIBRARY=${OPENSSL_CRYPTO_LIBRARY}")
228
+
if(FIREBASE_USE_BORINGSSL)
229
+
set(OPENSSL_FOUND TRUECACHEBOOL"" FORCE)
230
+
set(OPENSSL_NO_ASM TRUE) # Force cross-platform BoringSSL, no ASM.
# Now if we do find_package(OpenSSL) it should give us BoringSSL.
250
+
find_package(OpenSSL)
251
+
252
+
if(NOT"${OPENSSL_INCLUDE_DIR}"MATCHES boringssl OR
253
+
NOT"${OPENSSL_SSL_LIBRARY}"MATCHES boringssl OR
254
+
NOT"${OPENSSL_CRYPTO_LIBRARY}"MATCHES boringssl)
255
+
message(FATAL_ERROR "BoringSSL was not configured correctly.\nINCLUDE_DIR=${OPENSSL_INCLUDE_DIR}\nSSL_LIBRARY=${OPENSSL_SSL_LIBRARY}\nCRYPTO_LIBRARY=${OPENSSL_CRYPTO_LIBRARY}")
256
+
endif()
257
+
else()
258
+
# Don't use BoringSSL, use OpenSSL. If you are linking against the libraries directly
259
+
# from source, you probably want this instead.
260
+
#
261
+
# If the find_package fails to find OpenSSL, set OPENSSL_ROOT_DIR to OpenSSL'S install
0 commit comments