From 5d8890961e5dd3a01cabb172d159366f8d8979aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=BCtzel?= Date: Wed, 15 May 2024 15:36:10 +0200 Subject: [PATCH] SuiteSparseBLAS.cmake: Unset cache variable BLA_VENDOR. Fixes #800. --- SuiteSparse_config/cmake_modules/SuiteSparseBLAS.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SuiteSparse_config/cmake_modules/SuiteSparseBLAS.cmake b/SuiteSparse_config/cmake_modules/SuiteSparseBLAS.cmake index adcd4266f..69ab1e941 100644 --- a/SuiteSparse_config/cmake_modules/SuiteSparseBLAS.cmake +++ b/SuiteSparse_config/cmake_modules/SuiteSparseBLAS.cmake @@ -63,7 +63,7 @@ endif ( ) # # The default for SUITESPARSE_USE_64BIT_BLAS is OFF. -if ( NOT (BLA_VENDOR STREQUAL "ANY" ) ) +if ( NOT ( BLA_VENDOR STREQUAL "ANY" ) ) # only look for the BLAS from a single vendor if ( ( BLA_VENDOR MATCHES "64ilp" ) OR ( BLA_VENDOR MATCHES "ilp64" ) ) @@ -153,7 +153,7 @@ if ( SUITESPARSE_USE_64BIT_BLAS ) endif ( ) # Look for any 64-bit BLAS - unset ( BLA_VENDOR ) + unset ( BLA_VENDOR CACHE ) message ( STATUS "Looking for any 64-bit BLAS" ) set ( BLA_SIZEOF_INTEGER 8 ) find_package ( BLAS ) @@ -238,7 +238,7 @@ endif ( ) #------------------------------------------------------------------------------- # Look for any 32-bit BLAS (this is required) -unset ( BLA_VENDOR ) +unset ( BLA_VENDOR CACHE ) message ( STATUS "Looking for any 32-bit BLAS" ) set ( BLA_SIZEOF_INTEGER 4 ) find_package ( BLAS REQUIRED )