File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -55,8 +55,22 @@ jrl_option(GENERATE_PYTHON_STUBS "Generate Python stubs" OFF)
5555############################################################
5656
5757# Eigen3
58- if (NOT TARGET Eigen3::Eigen)
59- jrl_find_package(Eigen3 CONFIG REQUIRED)
58+ # NOTE: The fetchcontent support is meant for testing purposes
59+ # and when users include proxsuite with FetchContent.
60+ # We recommend that users install eigen via their package manager.
61+ jrl_find_package(Eigen3 CONFIG QUIET )
62+ if (NOT Eigen3_FOUND)
63+ message (
64+ WARNING
65+ "[proxsuite] Eigen3 library not found. Falling back to FetchContent to get Eigen3 v5.0.1"
66+ )
67+ include (FetchContent)
68+ FetchContent_Declare(
69+ eigen
70+ URL https://gitlab.com/libeigen/eigen/-/archive/5.0.1/eigen-5.0.1.zip
71+ URL_HASH MD5=b8e2be4dcc4d9a455584af1b28323567
72+ )
73+ FetchContent_MakeAvailable(eigen)
6074endif ()
6175
6276# Catch2
You can’t perform that action at this time.
0 commit comments