Skip to content

Commit

Permalink
Fix for finding CHOLMOD & UMFPACK libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
cybaol committed Jul 11, 2024
1 parent 46ffc41 commit 964462d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion surface/src/on_nurbs/on_nurbs.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ set(ON_NURBS_SOURCES

set(USE_UMFPACK 0 CACHE BOOL "Use UmfPack for solving sparse systems of equations (e.g. in surface/on_nurbs)")
if(USE_UMFPACK)
find_package(CHOLMOD REQUIRED)
find_package(UMFPACK REQUIRED)
set(ON_NURBS_SOURCES ${ON_NURBS_SOURCES} src/on_nurbs/nurbs_solve_umfpack.cpp)
set(ON_NURBS_LIBRARIES ${ON_NURBS_LIBRARIES} cholmod umfpack)
set(ON_NURBS_LIBRARIES ${ON_NURBS_LIBRARIES} SuiteSparse::CHOLMOD SuiteSparse::UMFPACK)
else()
set(ON_NURBS_SOURCES ${ON_NURBS_SOURCES} src/on_nurbs/nurbs_solve_eigen.cpp)
endif()
Expand Down

0 comments on commit 964462d

Please sign in to comment.