Skip to content

Commit

Permalink
FindGraphBLAS: for module case, no default path (to avoid stumbling i…
Browse files Browse the repository at this point in the history
…nto a very old version of GraphBLAS)
  • Loading branch information
DrTimothyAldenDavis committed Dec 6, 2023
1 parent c23fa85 commit d12f65e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake_modules/FindGraphBLAS.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ find_path ( GRAPHBLAS_INCLUDE_DIR
HINTS ${PROJECT_SOURCE_DIR}/../GraphBLAS
HINTS ${PROJECT_SOURCE_DIR}/../SuiteSparse/GraphBLAS
PATH_SUFFIXES include Include
)
NO_DEFAULT_PATH )

# dynamic SuiteSparse:GraphBLAS library
find_library ( GRAPHBLAS_LIBRARY
Expand All @@ -232,7 +232,7 @@ find_library ( GRAPHBLAS_LIBRARY
HINTS ${PROJECT_SOURCE_DIR}/../GraphBLAS
HINTS ${PROJECT_SOURCE_DIR}/../SuiteSparse/GraphBLAS
PATH_SUFFIXES lib build alternative
)
NO_DEFAULT_PATH )

if ( MSVC )
set ( STATIC_NAME graphblas_static )
Expand All @@ -253,7 +253,8 @@ find_library ( GRAPHBLAS_STATIC
HINTS ${PROJECT_SOURCE_DIR}/../GraphBLAS
HINTS ${PROJECT_SOURCE_DIR}/../SuiteSparse/GraphBLAS
PATH_SUFFIXES lib build alternative
)
NO_DEFAULT_PATH )

set ( CMAKE_FIND_LIBRARY_SUFFIXES ${save} )
if ( MINGW AND GRAPHBLAS_STATIC MATCHES ".*\.dll\.a" )
set ( GRAPHBLAS_STATIC "" )
Expand Down

0 comments on commit d12f65e

Please sign in to comment.