-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bump Eigen dependency to 3.4.0 (#176)
* Bump Eigen dependency to 3.4.0 * Delete eigen-config-cmake.patch Not needed anymore in version 3.4.0 * Bump CMake version * Bump CMake version * Use newer Docker image on CircleCI * Fix CircleCI configuration
- Loading branch information
Showing
5 changed files
with
17 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,20 @@ | ||
find_package(Eigen3 3.3 CONFIG QUIET | ||
find_package(Eigen3 3.4 CONFIG QUIET | ||
NO_CMAKE_PATH | ||
NO_CMAKE_PACKAGE_REGISTRY | ||
) | ||
|
||
if(TARGET Eigen3::Eigen) | ||
message(STATUS "Using Eigen3: ${EIGEN3_ROOT_DIR} (version ${Eigen3_VERSION})") | ||
else() | ||
message(STATUS "Suitable Eigen3 could not be located. Fetching and building!") | ||
include(FetchContent) | ||
|
||
FetchContent_Declare(eigen3_sources | ||
FetchContent_Declare(eigen3 | ||
QUIET | ||
URL | ||
https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz | ||
PATCH_COMMAND patch -p1 < ${CMAKE_CURRENT_LIST_DIR}/eigen-config-cmake.patch | ||
https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.tar.gz | ||
) | ||
|
||
FetchContent_GetProperties(eigen3_sources) | ||
|
||
set(BUILD_TESTING OFF CACHE BOOL "" FORCE) | ||
|
||
if(NOT eigen3_sources_POPULATED) | ||
FetchContent_Populate(eigen3_sources) | ||
|
||
add_subdirectory( | ||
${eigen3_sources_SOURCE_DIR} | ||
${eigen3_sources_BINARY_DIR} | ||
) | ||
endif() | ||
# Provide an alias, so linking to Eigen looks the same regardless if it was | ||
# found on the system or if it was fetched at configuration | ||
add_library(Eigen3::Eigen ALIAS eigen) | ||
FetchContent_MakeAvailable(eigen3) | ||
endif() |