From d12f65eabaa76ab32c632dff750920970514961b Mon Sep 17 00:00:00 2001 From: Tim Davis Date: Wed, 6 Dec 2023 17:36:50 -0600 Subject: [PATCH] FindGraphBLAS: for module case, no default path (to avoid stumbling into a very old version of GraphBLAS) --- cmake_modules/FindGraphBLAS.cmake | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cmake_modules/FindGraphBLAS.cmake b/cmake_modules/FindGraphBLAS.cmake index 8e74adea34..110ac3457c 100644 --- a/cmake_modules/FindGraphBLAS.cmake +++ b/cmake_modules/FindGraphBLAS.cmake @@ -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 @@ -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 ) @@ -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 "" )