Imported Upstream version 1.18.0
[platform/core/ml/nnfw.git] / infra / cmake / packages / TensorFlowEigenSource-2.6.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.6.0.
11   # See tensorflow/third_party/eigen3/workspace.bzl.
12   envoption(EXTERNAL_DOWNLOAD_SERVER "https://gitlab.com")
13   envoption(TENSORFLOW_2_6_0_EIGEN_URL ${EXTERNAL_DOWNLOAD_SERVER}/libeigen/eigen/-/archive/12e8d57108c50d8a63605c6eb0144c838c128337/eigen-12e8d57108c50d8a63605c6eb0144c838c128337.tar.gz)
14
15   ExternalSource_Download(EIGEN DIRNAME TENSORFLOW-2.6.0-EIGEN ${TENSORFLOW_2_6_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()