cmake: fix Eigen3 detection

For some reason FindEigen3.cmake defines all cap. variables, i.e.
Eigen3_FOUND -> EIGEN3_FOUND
This commit is contained in:
Christoph Junghans 2018-09-06 14:18:28 -06:00
parent 0b951840f2
commit d7b00f86f8
1 changed files with 1 additions and 1 deletions

View File

@ -551,7 +551,7 @@ if(PKG_USER-SMD)
list(APPEND LAMMPS_DEPS Eigen3_build)
else()
find_package(Eigen3)
if(NOT Eigen3_FOUND)
if(NOT EIGEN3_FOUND)
message(FATAL_ERROR "Eigen3 not found, help CMake to find it by setting EIGEN3_INCLUDE_DIR, or set DOWNLOAD_EIGEN3=ON to download it")
endif()
endif()