Set Eigen3 use file name in CGAL common

ensure the use file is known even if the FindEigen3.cmake
shipped with Eigen is used
This commit is contained in:
Sébastien Loriot 2016-06-06 13:59:19 +02:00
parent 2a47ae5ef4
commit 3cf08a5949
2 changed files with 4 additions and 3 deletions

View File

@ -54,5 +54,8 @@ if( NOT CGAL_COMMON_FILE_INCLUDED )
# set minimal version of some optional libraries:
set( Eigen3_FIND_VERSION "3.1.0")
# set use-file for Eigen3 (needed to have default solvers)
set(EIGEN3_USE_FILE "UseEigen3")
endif()

View File

@ -44,8 +44,6 @@ macro(_eigen3_get_version)
set(EIGEN3_VERSION ${EIGEN3_WORLD_VERSION}.${EIGEN3_MAJOR_VERSION}.${EIGEN3_MINOR_VERSION})
endmacro(_eigen3_get_version)
set(EIGEN3_USE_FILE "UseEigen3")
if (EIGEN3_INCLUDE_DIR)
if (EXISTS ${EIGEN3_INCLUDE_DIR}/signature_of_eigen3_matrix_library)