function(_RuySource_import)
  nnas_include(ExternalSourceTools)
  nnas_include(OptionTools)

  # NOTE Downloads source from latest ruy library (2020-04-10)
  envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
  set(RUY_URL ${EXTERNAL_DOWNLOAD_SERVER}/google/ruy/archive/2e2658f964638ab7aa562d4b48b76007d44e38f0.tar.gz)
  ExternalSource_Get("ruy" ${DOWNLOAD_RUY} ${RUY_URL})

  set(RuySource_DIR ${ruy_SOURCE_DIR} PARENT_SCOPE)
  set(RuySource_FOUND ${ruy_SOURCE_GET} PARENT_SCOPE)
endfunction(_RuySource_import)

_RuySource_import()
