diff options
author | Brad King <brad.king@kitware.com> | 2021-07-12 14:57:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-12 15:08:05 (GMT) |
commit | 57dcde19da24d211bad945fbbe7851abbf9bdab3 (patch) | |
tree | 8473d617b1d663b6576636b7a578b59cfb75674c /Modules/FindBLAS.cmake | |
parent | ac984cb5f75349fd5ed00cc52fbb5154b7bb1527 (diff) | |
download | CMake-57dcde19da24d211bad945fbbe7851abbf9bdab3.zip CMake-57dcde19da24d211bad945fbbe7851abbf9bdab3.tar.gz CMake-57dcde19da24d211bad945fbbe7851abbf9bdab3.tar.bz2 |
Find{BLAS,LAPACK}: Avoid clobbering results when no vendor is requested
Logic added by commit 4c74c86f40 (FindBLAS/LAPACK: Add support for the
Fujitsu SSL2 library, 2021-01-27, v3.21.0-rc1~402^2~1) accidentally
expressed a boolean condition without proper grouping. The pattern was
then copied by commit 2c9e623e31 (Find{BLAS,LAPACK}: Add support for the
NVHPC LAPACK library, 2021-05-05, v3.21.0-rc1~192^2). The resulting
logic incorrectly tries Fujitsu and NVHPC vendors even after results are
found from another vendor, and then erases those. Fix the grouping.
Fixes: #22403
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r-- | Modules/FindBLAS.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake index e048318..726ff75 100644 --- a/Modules/FindBLAS.cmake +++ b/Modules/FindBLAS.cmake @@ -1110,8 +1110,8 @@ if(BLA_VENDOR MATCHES "EML" OR BLA_VENDOR STREQUAL "All") endif() # Fujitsu SSL2 Library? -if(NOT BLAS_LIBRARIES AND - BLA_VENDOR MATCHES "Fujitsu_SSL2" OR BLA_VENDOR STREQUAL "All") +if(NOT BLAS_LIBRARIES + AND (BLA_VENDOR MATCHES "Fujitsu_SSL2" OR BLA_VENDOR STREQUAL "All")) if(BLA_VENDOR STREQUAL "Fujitsu_SSL2BLAMP") set(_ssl2_suffix BLAMP) else() |