From 75e05e8995995132dad34e577ee6979d5ee41021 Mon Sep 17 00:00:00 2001 From: Norihiro Watanabe <norihiro.watanabe@ufz.de> Date: Wed, 2 Nov 2016 14:07:26 +0100 Subject: [PATCH] [CMake] add OGS_USE_EIGEN_UNSUPPORTED option --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7ae573e78ce..65d3aac1c36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -81,6 +81,7 @@ option(OGS_USE_MPI "Use MPI" OFF) # Eigen option(OGS_USE_EIGEN "Use Eigen linear solver" ON) +option(OGS_USE_EIGEN_UNSUPPORTED "Use Eigen unsupported modules" ON) option(OGS_EIGEN_DYNAMIC_SHAPE_MATRICES "Use dynamically allocated shape matrices" ON) option(EIGEN_NO_DEBUG "Disables Eigen's assertions" OFF) @@ -171,6 +172,9 @@ endif() if(OGS_USE_EIGEN) add_definitions(-DOGS_USE_EIGEN) + if(OGS_USE_EIGEN_UNSUPPORTED) + add_definitions(-DUSE_EIGEN_UNSUPPORTED) + endif() endif() if (OGS_FATAL_ABORT) -- GitLab