diff options
Diffstat (limited to 'infra/cmake/packages/EigenSourceConfig.cmake')
-rw-r--r-- | infra/cmake/packages/EigenSourceConfig.cmake | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/infra/cmake/packages/EigenSourceConfig.cmake b/infra/cmake/packages/EigenSourceConfig.cmake new file mode 100644 index 000000000..14ed5e7e7 --- /dev/null +++ b/infra/cmake/packages/EigenSourceConfig.cmake @@ -0,0 +1,19 @@ +function(_EigenSource_import) + if(NOT DOWNLOAD_EIGEN) + set(EigenSource_FOUND FALSE PARENT_SCOPE) + return() + endif(NOT DOWNLOAD_EIGEN) + + nnas_include(ExternalSourceTools) + nnas_include(OptionTools) + + # NOTE The following URL comes from TensorFlow 1.7 + envoption(EIGEN_URL https://bitbucket.org/eigen/eigen/get/2355b229ea4c.tar.gz) + + ExternalSource_Download(EIGEN ${EIGEN_URL}) + + set(EigenSource_DIR ${EIGEN_SOURCE_DIR} PARENT_SCOPE) + set(EigenSource_FOUND TRUE PARENT_SCOPE) +endfunction(_EigenSource_import) + +_EigenSource_import() |