1 function(_FarmhashSource_import)
2 if(NOT DOWNLOAD_FARMHASH)
3 set(FarmhashSource_FOUND FALSE PARENT_SCOPE)
5 endif(NOT DOWNLOAD_FARMHASH)
7 nnas_include(ExternalSourceTools)
8 nnas_include(OptionTools)
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)
15 ExternalSource_Download(FARMHASH ${FARMHASH_1_12_URL})
17 set(FarmhashSource_DIR ${FARMHASH_SOURCE_DIR} PARENT_SCOPE)
18 set(FarmhashSource_FOUND TRUE PARENT_SCOPE)
19 endfunction(_FarmhashSource_import)
21 _FarmhashSource_import()