-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump Eigen to 3.4 (#387) * Compatibility with Eigen-3.4 * Bump MRCPP to 1.4 * Prepare v1.0.2 Co-authored-by: gitpeterwind <[email protected]>
- Loading branch information
1 parent
132d64f
commit b5fbff5
Showing
9 changed files
with
33 additions
and
58 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 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 +1 @@ | ||
1.0.1 | ||
1.0.2 |
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,30 +1,20 @@ | ||
find_package(Eigen3 3.3 CONFIG QUIET NO_CMAKE_PACKAGE_REGISTRY) | ||
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() |
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