Skip to content

Commit 8c0a7b3

Browse files
Disable Eigen tests/docs during FetchContent build
Eigen's FetchContent was configuring its entire test suite (CHOLMOD, UMFPACK, CUDA, Qt, Boost, etc.) causing slow builds and failures in isolated CI environments like manylinux.
1 parent 5c69ca2 commit 8c0a7b3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@ if(NOT Eigen3_FOUND)
7272
GIT_REPOSITORY https://gitlab.com/libeigen/eigen.git
7373
GIT_TAG 3.4.0
7474
)
75+
set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
76+
set(EIGEN_BUILD_DOC OFF CACHE BOOL "" FORCE)
77+
set(EIGEN_BUILD_TESTING OFF CACHE BOOL "" FORCE)
7578
FetchContent_MakeAvailable(eigen)
7679

7780
# Point Eigen3_DIR to the build directory where Eigen3Config.cmake is generated

0 commit comments

Comments
 (0)