Skip to content

Commit 2f0720e

Browse files
Drop custom script for finding SuiteSparse
Replace custom cmake script for finding SuiteSparse by looking directly for CHOLMOD. Relates #874
1 parent ef80e64 commit 2f0720e

2 files changed

Lines changed: 2 additions & 539 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ endif()
104104

105105
# For building the CHOLMOD based solvers
106106
option(G2O_USE_CHOLMOD "Build g2o with CHOLMOD support" ON)
107-
find_package(SuiteSparse)
108-
if (G2O_USE_CHOLMOD AND SuiteSparse_CHOLMOD_FOUND)
107+
find_package(CHOLMOD)
108+
if (G2O_USE_CHOLMOD AND TARGET SuiteSparse::CHOLMOD)
109109
message(STATUS "Enable support for Cholmod")
110110
set(CHOLMOD_FOUND TRUE)
111111
else()

0 commit comments

Comments
 (0)