ubuntu 22.04 use eigen 3.4. The minimum eigen version is raised to 3.4. Old cmake code is also removed.
21 lines
657 B
CMake
21 lines
657 B
CMake
macro(SetupEigen)
|
|
# -------------------------------- Eigen --------------------------------
|
|
|
|
# necessary for Sketcher module
|
|
# necessary for Robot module
|
|
|
|
find_package(Eigen3)
|
|
if(NOT EIGEN3_FOUND)
|
|
message("=================\n"
|
|
"Eigen3 not found.\n"
|
|
"=================\n")
|
|
endif(NOT EIGEN3_FOUND)
|
|
|
|
if (EIGEN3_FOUND AND ${EIGEN3_VERSION} VERSION_LESS "3.4.0")
|
|
message(WARNING "Disable module flatmesh because it requires "
|
|
"minimum Eigen3 version 3.4.0 but version ${EIGEN3_VERSION} was found")
|
|
set (BUILD_FLAT_MESH OFF)
|
|
endif()
|
|
|
|
endmacro(SetupEigen)
|