summaryrefslogtreecommitdiffstats
path: root/Modules/FindBLAS.cmake
diff options
context:
space:
mode:
authorMartin Köhler <grisuthedragon@users.noreply.github.com>2023-11-13 10:26:49 (GMT)
committerBrad King <brad.king@kitware.com>2023-11-13 14:58:26 (GMT)
commit6ce94ae0b740c65604194bf93d799184f869a80a (patch)
tree409bcf58e2c53e0c4f9fc20d9b1781450f5f153d /Modules/FindBLAS.cmake
parent5e79703f93be8374efd8e9dfe570d03a6c48e4ab (diff)
downloadCMake-6ce94ae0b740c65604194bf93d799184f869a80a.zip
CMake-6ce94ae0b740c65604194bf93d799184f869a80a.tar.gz
CMake-6ce94ae0b740c65604194bf93d799184f869a80a.tar.bz2
Find{BLAS,LAPACK}: Fix OpenBLAS ILP64 support with MSYS2 packages
Typically, ILP64 BLAS libraries are suffixed with `64`, but the MSYS2 package provides the ILP64 version of OpenBLAS with a `_64` suffix.
Diffstat (limited to 'Modules/FindBLAS.cmake')
-rw-r--r--Modules/FindBLAS.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/Modules/FindBLAS.cmake b/Modules/FindBLAS.cmake
index 39a1163..e9b118f 100644
--- a/Modules/FindBLAS.cmake
+++ b/Modules/FindBLAS.cmake
@@ -746,7 +746,11 @@ if(BLA_VENDOR STREQUAL "OpenBLAS" OR BLA_VENDOR STREQUAL "All")
set(_blas_openblas_lib "openblas")
if(_blas_sizeof_integer EQUAL 8)
- string(APPEND _blas_openblas_lib "64")
+ if(MINGW)
+ string(APPEND _blas_openblas_lib "_64")
+ else()
+ string(APPEND _blas_openblas_lib "64")
+ endif()
endif()
if(NOT BLAS_LIBRARIES)