Imported Upstream version 1.8.0
[platform/core/ml/nnfw.git] / infra / cmake / packages / FarmhashSourceConfig.cmake
1 function(_FarmhashSource_import)
2   if(NOT DOWNLOAD_FARMHASH)
3     set(FarmhashSource_FOUND FALSE PARENT_SCOPE)
4     return()
5   endif(NOT DOWNLOAD_FARMHASH)
6
7   nnas_include(ExternalSourceTools)
8   nnas_include(OptionTools)
9
10   # NOTE TensorFlow 1.12 downloads farmhash from the following URL
11   #      TensorFlow 1.13.1 downloads farmhash from the following URL
12   #      TensorFlow 2.3.0 downloads farmhash from the following URL
13   envoption(FARMHASH_1_12_URL https://github.com/google/farmhash/archive/816a4ae622e964763ca0862d9dbd19324a1eaf45.tar.gz)
14
15   ExternalSource_Download(FARMHASH ${FARMHASH_1_12_URL})
16
17   set(FarmhashSource_DIR ${FARMHASH_SOURCE_DIR} PARENT_SCOPE)
18   set(FarmhashSource_FOUND TRUE PARENT_SCOPE)
19 endfunction(_FarmhashSource_import)
20
21 _FarmhashSource_import()