@@ -32,8 +32,8 @@ include(ExternalProject)
3232# If you'd rather just use your operating system's Eigen, then this stanza could
3333# be removed (as well as removing -DWITH_USER_EIGEN:BOOL=ON, below).
3434ExternalProject_Add(eigen
35- URL https://gitlab.com/libeigen/eigen/-/archive/3.4.0 /eigen-3.4.0 .tar.gz
36- URL_HASH SHA256=8586084f71f9bde545ee7fa6d00288b264a2b7ac3607b974e54d13e7162c1c72
35+ URL https://gitlab.com/libeigen/eigen/-/archive/5.0.1 /eigen-5.0.1 .tar.gz
36+ URL_HASH SHA256=e9c326dc8c05cd1e044c71f30f1b2e34a6161a3b6ecf445d56b53ff1669e3dec
3737 TLS_VERIFY ON
3838 CMAKE_ARGS
3939 -DCMAKE_BUILD_TYPE:STRING =${CMAKE_BUILD_TYPE}
@@ -42,21 +42,17 @@ ExternalProject_Add(eigen
4242 -DCMAKE_INSTALL_PREFIX:PATH =${CMAKE_INSTALL_PREFIX}
4343 -DCMAKE_PREFIX_PATH:PATH =${CMAKE_PREFIX_PATH}
4444 -DCMAKE_VERBOSE_MAKEFILE:BOOL =${CMAKE_VERBOSE_MAKEFILE}
45- # Suppress warnings from Eigen's deprecated upstream CMake.
46- # 1. Using find_package(CUDA), which has been replaced by more robust CUDA
47- # language support since CMake 3.27. Eigen officially enforces the OLD
48- # policy, but doesn't properly cover their "unsupported" code.
49- # See https://cmake.org/cmake/help/latest/module/FindCUDA.html or run
50- # cmake --help-policy CMP0146 for details.
51- -DCMAKE_POLICY_DEFAULT_CMP0146:STRING =OLD
52- # 2. Using find_package(Boost), which has been replaced by Boost's upstream
53- # package configuration file since CMake 3.30 and Boost 1.70.
54- # find_package(Boost) now defers to upstream to keep up with their
55- # releases. Since Eigen allows Boost from 1.53 (as of writing), we can't
56- # enforce the NEW policy here.
57- # See https://cmake.org/cmake/help/latest/module/FindBoost.html or run
58- # cmake --help-policy CMP0167 for details.
59- -DCMAKE_POLICY_DEFAULT_CMP0167:STRING =OLD
45+ # Eigen's default option is to build vendored dependencies and other
46+ # development tools (tests, documentation, etc.) when building from source
47+ # via `ExternalProject_Add`. Since these tools aren't needed for this
48+ # example, we'll disable them explicitly.
49+ -DEIGEN_BUILD_BLAS:BOOL =OFF
50+ -DEIGEN_BUILD_LAPACK:BOOL =OFF
51+ -DEIGEN_BUILD_TESTING:BOOL =OFF
52+ -DEIGEN_BUILD_DOC:BOOL =OFF
53+ -DEIGEN_BUILD_DEMOS:BOOL =OFF
54+ -DEIGEN_BUILD_PKGCONFIG:BOOL =OFF
55+ -DEIGEN_BUILD_CMAKE_PACKAGE:BOOL =OFF
6056 BUILD_ALWAYS ON
6157)
6258
0 commit comments