summaryrefslogtreecommitdiff
path: root/infra/nnfw/cmake/packages/EigenConfig.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'infra/nnfw/cmake/packages/EigenConfig.cmake')
-rw-r--r--infra/nnfw/cmake/packages/EigenConfig.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/infra/nnfw/cmake/packages/EigenConfig.cmake b/infra/nnfw/cmake/packages/EigenConfig.cmake
index 7a8d3d5c6..23e38cda8 100644
--- a/infra/nnfw/cmake/packages/EigenConfig.cmake
+++ b/infra/nnfw/cmake/packages/EigenConfig.cmake
@@ -9,6 +9,8 @@ function(_Eigen_import)
if(NOT TARGET eigen)
add_library(eigen INTERFACE)
target_include_directories(eigen SYSTEM INTERFACE "${EigenSource_DIR}")
+ # Add EIGEN_MPL2_ONLY to remove license issue posibility
+ target_compile_definitions(eigen INTERFACE EIGEN_MPL2_ONLY)
endif(NOT TARGET eigen)
set(Eigen_FOUND TRUE PARENT_SCOPE)