diff options
Diffstat (limited to 'infra/nnfw/cmake/packages/FarmhashSourceConfig.cmake')
-rw-r--r-- | infra/nnfw/cmake/packages/FarmhashSourceConfig.cmake | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/infra/nnfw/cmake/packages/FarmhashSourceConfig.cmake b/infra/nnfw/cmake/packages/FarmhashSourceConfig.cmake new file mode 100644 index 000000000..b2cb9886d --- /dev/null +++ b/infra/nnfw/cmake/packages/FarmhashSourceConfig.cmake @@ -0,0 +1,14 @@ +function(_FarmhashSource_import) + nnfw_include(ExternalSourceTools) + nnfw_include(OptionTools) + + # NOTE TensorFlow 1.12 downloads farmhash from the following URL + envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com") + set(FARMHASH_URL ${EXTERNAL_DOWNLOAD_SERVER}/google/farmhash/archive/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz) + ExternalSource_Get("farmhash" ${DOWNLOAD_FARMHASH} ${FARMHASH_URL}) + + set(FarmhashSource_DIR ${farmhash_SOURCE_DIR} PARENT_SCOPE) + set(FarmhashSource_FOUND ${farmhash_SOURCE_GET} PARENT_SCOPE) +endfunction(_FarmhashSource_import) + +_FarmhashSource_import() |