summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/packages/EigenSourceConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'infra/nnfw/cmake/packages/EigenSourceConfig.cmake')
-rw-r--r--infra/nnfw/cmake/packages/EigenSourceConfig.cmake14
1 files changed, 14 insertions, 0 deletions
diff --git a/infra/nnfw/cmake/packages/EigenSourceConfig.cmake b/infra/nnfw/cmake/packages/EigenSourceConfig.cmake
new file mode 100644
index 000000000..1fbcf13d3
--- /dev/null
+++ b/infra/nnfw/cmake/packages/EigenSourceConfig.cmake
@@ -0,0 +1,14 @@
+function(_EigenSource_import)
+ nnas_include(ExternalSourceTools)
+ nnas_include(OptionTools)
+
+ # NOTE TensorFlow 1.12 downloads Eign from the following URL
+ envoption(EXTERNAL_DOWNLOAD_SERVER "https://bitbucket.org")
+ set(EIGEN_URL ${EXTERNAL_DOWNLOAD_SERVER}/eigen/eigen/get/88fc23324517.tar.gz)
+ ExternalSource_Get("eigen" ${DOWNLOAD_EIGEN} ${EIGEN_URL})
+
+ set(EigenSource_DIR ${eigen_SOURCE_DIR} PARENT_SCOPE)
+ set(EigenSource_FOUND ${eigen_SOURCE_GET} PARENT_SCOPE)
+endfunction(_EigenSource_import)
+
+_EigenSource_import()