Skip to content

Commit

Permalink
Fix Eigen include and add it to target
Browse files Browse the repository at this point in the history
  • Loading branch information
jbreue16 committed May 23, 2024
1 parent 884c04d commit 2ceab87
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ endif()

set(EIGEN_TARGET "")
if (ENABLE_DG)
find_package(Eigen3 3.4 NO_MODULE)
find_package(Eigen3 3.4 REQUIRED NO_MODULE)

# Disable DG if Eigen is not present
if (NOT TARGET Eigen3::Eigen)
Expand Down
2 changes: 1 addition & 1 deletion src/libcadet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ if (LAPACK_FOUND)
add_library(libcadet_nonlinalg_static STATIC ${LIBCADET_NONLINALG_SOURCES} ${LIBCADET_NONLINALG_SPARSE_SOURCES})
set_target_properties(libcadet_nonlinalg_static PROPERTIES OUTPUT_NAME cadet_nonlinalg_static)
target_compile_definitions(libcadet_nonlinalg_static PRIVATE libcadet_nonlinalg_static_EXPORTS ${LIB_LAPACK_DEFINE})
target_link_libraries(libcadet_nonlinalg_static PUBLIC CADET::CompileOptions PRIVATE SUNDIALS::sundials_idas ${SUNDIALS_NVEC_TARGET} ${LAPACK_LIBRARIES})
target_link_libraries(libcadet_nonlinalg_static PUBLIC CADET::CompileOptions PRIVATE Eigen3::Eigen SUNDIALS::sundials_idas ${SUNDIALS_NVEC_TARGET} ${LAPACK_LIBRARIES})

if (ENABLE_GRM_2D)
if (SUPERLU_FOUND)
Expand Down

0 comments on commit 2ceab87

Please sign in to comment.