From d4b8153bcb61bec5367db192a0de272660c1966d Mon Sep 17 00:00:00 2001
From: Timo Koch <timok@simula.no>
Date: Thu, 27 Feb 2025 17:56:26 +0100
Subject: [PATCH] [cmake][suitesparse] Consistent packges in suitesparse

---
 cmake/modules/FindSuiteSparse.cmake | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/cmake/modules/FindSuiteSparse.cmake b/cmake/modules/FindSuiteSparse.cmake
index 0a34c961c..c7d7f0358 100644
--- a/cmake/modules/FindSuiteSparse.cmake
+++ b/cmake/modules/FindSuiteSparse.cmake
@@ -131,11 +131,13 @@ foreach(_component ${SUITESPARSE_COMPONENTS})
   find_library(${_component}_LIBRARY "${_componentLower}"
     HINTS ${SUITESPARSE_LIB_DIR}
     PATH_SUFFIXES "${_component}/Lib"
+    NO_DEFAULT_PATH
   )
   # look for header file of the component
   find_path(${_component}_INCLUDE_DIR "${_componentLower}.h"
     HINTS ${SUITESPARSE_INCLUDE_DIR}
     PATH_SUFFIXES "suitesparse" "include" "${_component}/Include"
+    NO_DEFAULT_PATH
   )
 
   mark_as_advanced(${_component}_INCLUDE_DIR ${_component}_LIBRARY)
@@ -145,14 +147,18 @@ endforeach()
 find_path(SPQR_INCLUDE_DIR "SuiteSparseQR.hpp"
   HINTS ${SUITESPARSE_INCLUDE_DIR}
   PATH_SUFFIXES "suitesparse" "include" "SPQR/Include"
+  NO_DEFAULT_PATH
 )
+
 find_path(Mongoose_INCLUDE_DIR "Mongoose.hpp"
   HINTS ${SUITESPARSE_INCLUDE_DIR}
   PATH_SUFFIXES "suitesparse" "include" "Mongoose/Include"
+  NO_DEFAULT_PATH
 )
 find_path(GraphBLAS_INCLUDE_DIR "GraphBLAS.h"
   HINTS ${SUITESPARSE_INCLUDE_DIR}
   PATH_SUFFIXES "suitesparse" "include" "GraphBLAS/Include"
+  NO_DEFAULT_PATH
 )
 
 # check version of SuiteSparse
-- 
GitLab