summaryrefslogtreecommitdiffhomepage
path: root/cmake/FindEigen3.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/FindEigen3.cmake')
-rw-r--r--cmake/FindEigen3.cmake8
1 files changed, 7 insertions, 1 deletions
diff --git a/cmake/FindEigen3.cmake b/cmake/FindEigen3.cmake
index 2206ce43..b43208f9 100644
--- a/cmake/FindEigen3.cmake
+++ b/cmake/FindEigen3.cmake
@@ -80,5 +80,11 @@ else (EIGEN3_INCLUDE_DIR)
endif(EIGEN3_INCLUDE_DIR)
if(EIGEN3_FOUND)
- add_definitions(-DEIGEN_MPL2_ONLY)
+ add_definitions(
+ -DEIGEN_MPL2_ONLY=1
+ -DEIGEN_MAX_CPP_VER=17
+ -DEIGEN_DEFAULT_DENSE_INDEX_TYPE=int
+ -DEIGEN_NO_DEBUG=1
+ -DEIGEN_DONT_PARALLELIZE=1
+ )
endif()