message: Only download OpenSSL when necessary
diff: @@ -317,6 +317,7 @@ if(NOT REALM_SKIP_SHARED_LIB)
  endif()
  if(UNIX AND NOT APPLE)
  + if(NOT EXISTS ${CMAKE_CURRENT_BINARY_DIR}/openssl/lib/cmake/OpenSSL/OpenSSLConfig.cmake)
  if(ANDROID)
  set(OPENSSL_URL "https://static.realm.io/downloads/openssl/${OPENSSL_VERSION}/Android/${CMAKE_ANDROID_ARCH_ABI}/openssl.tgz")
  else()
  @@ -336,6 +337,7 @@ if(UNIX AND NOT APPLE)
  COMMAND ${CMAKE_COMMAND} -E tar xfz "openssl.tgz"
  WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/openssl"
  )
  + endif()
  set(OpenSSL_DIR "${CMAKE_CURRENT_BINARY_DIR}/openssl/lib/cmake/OpenSSL")
  find_package(OpenSSL REQUIRED CONFIG)
  