summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/packages/SixSourceConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'infra/nnfw/cmake/packages/SixSourceConfig.cmake')
-rw-r--r--infra/nnfw/cmake/packages/SixSourceConfig.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/infra/nnfw/cmake/packages/SixSourceConfig.cmake b/infra/nnfw/cmake/packages/SixSourceConfig.cmake
new file mode 100644
index 000000000..309ead302
--- /dev/null
+++ b/infra/nnfw/cmake/packages/SixSourceConfig.cmake
@@ -0,0 +1,14 @@
+function(_SIXSource_import)
+ nnfw_include(ExternalSourceTools)
+ nnfw_include(OptionTools)
+
+ envoption(EXTERNAL_DOWNLOAD_SERVER "https://github.com")
+ set(six_URL ${EXTERNAL_DOWNLOAD_SERVER}/benjaminp/six/archive/1.11.0.tar.gz)
+
+ ExternalSource_Get("python_six" ${DOWNLOAD_NNPACK} ${six_URL})
+
+ set(PYTHON_SIX_SOURCE_DIR ${python_six_SOURCE_DIR} PARENT_SCOPE)
+ set(PYTHON_SIX_SOURCE_FOUND ${python_six_SOURCE_GET} PARENT_SCOPE)
+endfunction(_SIXSource_import)
+
+_SIXSource_import()