mirror of https://github.com/lammps/lammps.git
Merge pull request #1114 from junghans/cmake_eigen3
cmake: fix Eigen3 detection
This commit is contained in:
commit
a903e64947
|
@ -550,8 +550,9 @@ if(PKG_USER-SMD)
|
|||
set(EIGEN3_INCLUDE_DIR ${SOURCE_DIR})
|
||||
list(APPEND LAMMPS_DEPS Eigen3_build)
|
||||
else()
|
||||
find_package(Eigen3)
|
||||
if(NOT Eigen3_FOUND)
|
||||
find_package(Eigen3 NO_MODULE)
|
||||
mark_as_advanced(Eigen3_DIR)
|
||||
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