From ceada8311c4556552fd80e53f3228381f5c3cd1a Mon Sep 17 00:00:00 2001 From: Baptiste Mouginot Date: Fri, 6 Dec 2024 07:37:42 +0100 Subject: [PATCH] adding Eigen3 into include dires --- cmake/MOAB_PullAndMake.cmake | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmake/MOAB_PullAndMake.cmake b/cmake/MOAB_PullAndMake.cmake index 22ad35189..e068c718b 100644 --- a/cmake/MOAB_PullAndMake.cmake +++ b/cmake/MOAB_PullAndMake.cmake @@ -20,9 +20,10 @@ MACRO (moab_pull_make moab_version) -DBUILD_SHARED_LIBS:BOOL=ON -DENABLE_HDF5:BOOL=ON -DHDF5_ROOT:PATH=${HDF5_ROOT} + -DCMAKE_INSTALL_RPATH=${HDF5_ROOT}/lib:${MOAB_INSTALL_PREFIX}/lib -DENABLE_BLASLAPACK:BOOL=OFF -DENABLE_FORTRAN:BOOL=OFF - -DCMAKE_MACOSX_RPATH:BOOL=ON + -DENABLE_PYMOAB:BOOL=OFF DOWNLOAD_EXTRACT_TIMESTAMP true BUILD_BYPRODUCTS "${MOAB_LIBRARY_DIRS}/*${CMAKE_SHARED_LIBRARY_SUFFIX}*" INSTALL_DIR "${MOAB_INSTALL_PREFIX}" @@ -37,5 +38,7 @@ MACRO (moab_pull_make moab_version) PUBLIC_HEADER DESTINATION ${INSTALL_INCLUDE_DIR}) include_directories(${MOAB_INCLUDE_DIRS}) link_directories(${MOAB_LIBRARY_DIRS}) + find_package(Eigen3 REQUIRED NO_MODULE) include_directories(${EIGEN3_INCLUDE_DIRS}) + ENDMACRO(moab_pull_make)