Imported Upstream version 1.8.0
[platform/core/ml/nnfw.git] / infra / cmake / packages / TensorFlowEigenSource-2.3.0 / TensorFlowEigenSourceConfig.cmake
1 function(_TensorFlowEigenSource_import)
2   if(NOT DOWNLOAD_EIGEN)
3     set(TensorFlowEigenSource_FOUND FALSE PARENT_SCOPE)
4     return()
5   endif(NOT DOWNLOAD_EIGEN)
6
7   nnas_include(ExternalSourceTools)
8   nnas_include(OptionTools)
9
10   # Exact version used by TensorFlow v2.3.0.
11   # See tensorflow/tensorflow/workspace.bzl.
12   envoption(EXTERNAL_DOWNLOAD_SERVER "https://gitlab.com")
13   envoption(TENSORFLOW_2_3_0_EIGEN_URL ${EXTERNAL_DOWNLOAD_SERVER}/libeigen/eigen/-/archive/386d809bde475c65b7940f290efe80e6a05878c4/eigen-386d809bde475c65b7940f290efe80e6a05878c4.tar.gz)
14
15   ExternalSource_Download(EIGEN DIRNAME TENSORFLOW-2.3.0-EIGEN ${TENSORFLOW_2_3_0_EIGEN_URL})
16
17   set(TensorFlowEigenSource_DIR ${EIGEN_SOURCE_DIR} PARENT_SCOPE)
18   set(TensorFlowEigenSource_FOUND TRUE PARENT_SCOPE)
19 endfunction(_TensorFlowEigenSource_import)
20
21 _TensorFlowEigenSource_import()