Imported Upstream version 1.7.0
[platform/core/ml/nnfw.git] / infra / cmake / packages / TensorFlowEigenSource-2.1.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.1.0.
11   # See tensorflow/tensorflow/workspace.bzl.
12   envoption(TENSORFLOW_2_1_0_EIGEN_URL https://gitlab.com/libeigen/eigen/-/archive/4e696901f873a2347f76d931cf2f701e31e15d05/eigen-4e696901f873a2347f76d931cf2f701e31e15d05.tar.gz)
13
14   ExternalSource_Download(EIGEN DIRNAME TENSORFLOW-2.1.0-EIGEN ${TENSORFLOW_2_1_0_EIGEN_URL})
15
16   set(TensorFlowEigenSource_DIR ${EIGEN_SOURCE_DIR} PARENT_SCOPE)
17   set(TensorFlowEigenSource_FOUND TRUE PARENT_SCOPE)
18 endfunction(_TensorFlowEigenSource_import)
19
20 _TensorFlowEigenSource_import()