0297c08bc20bc843668343eeb8afa115e93a794a
[platform/core/ml/nnfw.git] / infra / cmake / packages / AbseilSourceConfig.cmake
1 function(_AbseilSource_import)
2   if(NOT DOWNLOAD_ABSEIL)
3     set(AbseilSource_FOUND FALSE PARENT_SCOPE)
4     return()
5   endif(NOT DOWNLOAD_ABSEIL)
6
7   nnas_include(ExternalSourceTools)
8   nnas_include(OptionTools)
9
10   # NOTE TensorFlow 2.9 downloads abseil 20211102.0
11   envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
12   envoption(ABSEIL_URL ${EXTERNAL_DOWNLOAD_SERVER}/abseil/abseil-cpp/archive/20211102.0.tar.gz)
13   ExternalSource_Download(ABSEIL
14     DIRNAME ABSEIL
15     URL ${ABSEIL_URL}
16     CHECKSUM MD5=bdca561519192543378b7cade101ec43)
17
18   set(AbseilSource_DIR ${ABSEIL_SOURCE_DIR} PARENT_SCOPE)
19   set(AbseilSource_FOUND TRUE PARENT_SCOPE)
20 endfunction(_AbseilSource_import)
21
22 _AbseilSource_import()