forked from lijiext/lammps
cmake: fix Eigen3 detection
For some reason FindEigen3.cmake defines all cap. variables, i.e. Eigen3_FOUND -> EIGEN3_FOUND
This commit is contained in:
parent
0b951840f2
commit
d7b00f86f8
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue