diff --git a/library/src/amd_detail/dlopen/cholmod.hpp b/library/src/amd_detail/dlopen/cholmod.hpp index 0864172e..342ed4f9 100644 --- a/library/src/amd_detail/dlopen/cholmod.hpp +++ b/library/src/amd_detail/dlopen/cholmod.hpp @@ -24,7 +24,7 @@ #include "lib_macros.hpp" #ifdef HAVE_ROCSPARSE -#include +#include #else // constants diff --git a/library/src/cmake/suitesparse/FindCHOLMOD.cmake b/library/src/cmake/suitesparse/FindCHOLMOD.cmake index 51678d75..f33239f4 100644 --- a/library/src/cmake/suitesparse/FindCHOLMOD.cmake +++ b/library/src/cmake/suitesparse/FindCHOLMOD.cmake @@ -1,5 +1,5 @@ # ######################################################################## -# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2024-2025 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -45,7 +45,10 @@ This module defines the following variables: #]=======================================================================] -find_path(CHOLMOD_INCLUDE_DIR suitesparse/cholmod.h) +find_path(CHOLMOD_INCLUDE_DIR + NAMES cholmod.h + PATH_SUFFIXES suitesparse + ) find_library(CHOLMOD_LIBRARY cholmod) include(FindPackageHandleStandardArgs) diff --git a/library/src/cmake/suitesparse/FindSuiteSparse_config.cmake b/library/src/cmake/suitesparse/FindSuiteSparse_config.cmake index dcdf78fe..0fe60b50 100644 --- a/library/src/cmake/suitesparse/FindSuiteSparse_config.cmake +++ b/library/src/cmake/suitesparse/FindSuiteSparse_config.cmake @@ -1,5 +1,5 @@ # ######################################################################## -# Copyright (C) 2024 Advanced Micro Devices, Inc. All rights reserved. +# Copyright (C) 2024-2025 Advanced Micro Devices, Inc. All rights reserved. # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -45,7 +45,10 @@ This module defines the following variables: #]=======================================================================] -find_path(SUITESPARSE_CONFIG_INCLUDE_DIR suitesparse/SuiteSparse_config.h) +find_path(SUITESPARSE_CONFIG_INCLUDE_DIR + NAMES SuiteSparse_config.h + PATH_SUFFIXES suitesparse + ) find_library(SUITESPARSE_CONFIG_LIBRARY suitesparseconfig) include(FindPackageHandleStandardArgs)