From 44644e4a01f6821eda955838fcd7cf3d43978be3 Mon Sep 17 00:00:00 2001 From: Biljana Bojovic Date: Wed, 22 Feb 2023 12:40:11 +0100 Subject: [PATCH] build-support: Disable non MPL2 compatible Eigen features Disable the features that are still under LGPL. --- build-support/macros-and-definitions.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/build-support/macros-and-definitions.cmake b/build-support/macros-and-definitions.cmake index 840b9d415..d0259c036 100644 --- a/build-support/macros-and-definitions.cmake +++ b/build-support/macros-and-definitions.cmake @@ -723,6 +723,7 @@ macro(process_options) if(${EIGEN3_FOUND}) set(ENABLE_EIGEN True) add_definitions(-DHAVE_EIGEN3) + add_definitions(-DEIGEN_MPL2_ONLY) include_directories(${EIGEN3_INCLUDE_DIR}) else() message(${HIGHLIGHTED_STATUS} "Eigen was not found")