From 7ceb9721e35e027a51fa3a6f1e1844048ab2b20d Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 29 Apr 2018 13:58:38 +0200 Subject: [PATCH] check for minimum Eigen3 version to build flatmesh module --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab0ea3d23a..04a1005e56 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -789,6 +789,12 @@ endif() "=================\n") ENDIF(NOT EIGEN3_FOUND) + if (${EIGEN3_VERSION} VERSION_LESS "3.3.1") + message(WARNING "Disable module flatmesh because it requires " + "minimum Eigen3 version 3.3.1 but version ${EIGEN3_VERSION} was found") + set (BUILD_FLAT_MESH OFF) + endif() + # -------------------------------- Qt -------------------------------- if (NOT BUILD_QT5)