build-support: Disable non MPL2 compatible Eigen features

Disable the features that are still under LGPL.
This commit is contained in:
Biljana Bojovic
2023-02-22 12:40:11 +01:00
parent 7f8a1dfa8a
commit 44644e4a01

View File

@@ -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")