summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/packages/AbslSourceConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'infra/nnfw/cmake/packages/AbslSourceConfig.cmake')
-rw-r--r--infra/nnfw/cmake/packages/AbslSourceConfig.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/infra/nnfw/cmake/packages/AbslSourceConfig.cmake b/infra/nnfw/cmake/packages/AbslSourceConfig.cmake
new file mode 100644
index 000000000..685550d52
--- /dev/null
+++ b/infra/nnfw/cmake/packages/AbslSourceConfig.cmake
@@ -0,0 +1,14 @@
+function(_AbslSource_import)
+ nnfw_include(ExternalSourceTools)
+ nnfw_include(OptionTools)
+
+ # NOTE The following URL comes from TensorFlow 1.12
+ envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
+ set(ABSL_URL ${EXTERNAL_DOWNLOAD_SERVER}/abseil/abseil-cpp/archive/389ec3f906f018661a5308458d623d01f96d7b23.tar.gz)
+ ExternalSource_Get("absl" ${DOWNLOAD_ABSL} ${ABSL_URL})
+
+ set(AbslSource_DIR ${absl_SOURCE_DIR} PARENT_SCOPE)
+ set(AbslSource_FOUND ${absl_SOURCE_GET} PARENT_SCOPE)
+endfunction(_AbslSource_import)
+
+_AbslSource_import()