Skip to content
Snippets Groups Projects
Commit 28d97ce3 authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Added Eigen version check. We now require Eigen 3.3

parent 3e4687b6
No related branches found
No related tags found
No related merge requests found
...@@ -31,5 +31,5 @@ src/examples/map_apriltag_save.yaml ...@@ -31,5 +31,5 @@ src/examples/map_apriltag_save.yaml
\.vscode/ \.vscode/
build_release/ build_release/
.clangd
wolf.found wolf.found
...@@ -91,6 +91,9 @@ list(APPEND wolf_LIBRARIES ${YAMLCPP_LIBRARY}) ...@@ -91,6 +91,9 @@ list(APPEND wolf_LIBRARIES ${YAMLCPP_LIBRARY})
if(NOT Eigen3_FOUND) if(NOT Eigen3_FOUND)
FIND_PACKAGE(Eigen3 REQUIRED) FIND_PACKAGE(Eigen3 REQUIRED)
endif() endif()
if(${EIGEN3_VERSION_STRING} VERSION_LESS 3.3)
message(FATAL_ERROR "Found Eigen ${EIGEN3_VERSION_MAJOR}.${EIGEN3_VERSION_MINOR}. The minimum version required is Eigen 3.3")
endif()
list(APPEND wolf_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIRS}) list(APPEND wolf_INCLUDE_DIRS ${EIGEN3_INCLUDE_DIRS})
SET(CMAKE_MODULE_PATH ${BACKUP_MODULE_PATH}) SET(CMAKE_MODULE_PATH ${BACKUP_MODULE_PATH})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment