Use system Eigen3 on linux when found

This commit is contained in:
Yuri D'Elia 2019-07-13 17:56:43 +02:00 committed by Vojtěch Bubník
parent 9d59d65fad
commit 77c3d2fbb3

View File

@ -317,10 +317,10 @@ endif()
# Find eigen3 or use bundled version
if (NOT SLIC3R_STATIC)
find_package(Eigen3 3)
find_package(Eigen3 3.3)
endif ()
if (NOT Eigen3_FOUND)
set(Eigen3_FOUND 1)
if (NOT EIGEN3_FOUND)
set(EIGEN3_FOUND 1)
set(EIGEN3_INCLUDE_DIR ${LIBDIR}/eigen/)
endif ()
include_directories(BEFORE SYSTEM ${EIGEN3_INCLUDE_DIR})