Skip to content

Commit

Permalink
FindCSparse: search for headers in PATH_SUFFIXES also in non-standard…
Browse files Browse the repository at this point in the history
… location (#699)
  • Loading branch information
traversaro authored May 6, 2024
1 parent a3442d2 commit d71e184
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMake/FindCSparse.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ FIND_PATH(CSPARSE_INCLUDE_DIR NAMES cs.h
/opt/local/include/ufsparse
/usr/local/include/ufsparse
/sw/include/ufsparse
PATH_SUFFIXES
suitesparse
ufsparse
)

FIND_LIBRARY(CSPARSE_LIBRARY NAMES cxsparse
Expand All @@ -22,4 +25,4 @@ FIND_LIBRARY(CSPARSE_LIBRARY NAMES cxsparse

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CSparse DEFAULT_MSG
CSPARSE_INCLUDE_DIR CSPARSE_LIBRARY)
CSPARSE_INCLUDE_DIR CSPARSE_LIBRARY)

0 comments on commit d71e184

Please sign in to comment.