Imported Upstream version 1.25.0
[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 GCC 13 requires abseil 20230125.3
11   envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
12   envoption(ABSEIL_URL ${EXTERNAL_DOWNLOAD_SERVER}/abseil/abseil-cpp/archive/20230125.3.tar.gz)
13   ExternalSource_Download(ABSEIL
14     DIRNAME ABSEIL
15     URL ${ABSEIL_URL}
16     CHECKSUM MD5=9b6dae642c4bd92f007ab2c148bc0498)
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()