[lapack-reference] Fix building lapack with cblas on mingw (#44584)

Co-authored-by: Mengna-Li <543250287@qq.com>
This commit is contained in:
Jaap Aarts 2025-03-27 17:38:53 +01:00 committed by GitHub
parent 977db88a84
commit e033aa9328
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 23 additions and 5 deletions

View File

@ -466,7 +466,7 @@ if(BLAS_FOUND)
"${BLAS_LIBRARIES}"
)
endif()
if(NOT LAPACK_LIBRARIES AND NOT WIN32)
if(NOT LAPACK_LIBRARIES)
check_lapack_libraries(
LAPACK_LIBRARIES
LAPACK
@ -479,6 +479,19 @@ if(BLAS_FOUND)
"${BLAS_LIBRARIES}"
)
endif()
if(NOT LAPACK_LIBRARIES)
check_lapack_libraries(
LAPACK_LIBRARIES
LAPACK
cheev
""
"lapack;m;gfortran;quadmath"
""
""
""
"${BLAS_LIBRARIES}"
)
endif()
endif()
else()
message(STATUS "LAPACK requires BLAS")

View File

@ -1,7 +1,7 @@
{
"name": "lapack-reference",
"version": "3.11.0",
"port-version": 6,
"port-version": 7,
"description": "LAPACK - Linear Algebra PACKage",
"homepage": "https://netlib.org/lapack/",
"license": "BSD-3-Clause-Open-MPI",
@ -16,7 +16,7 @@
},
{
"name": "vcpkg-gfortran",
"platform": "windows"
"platform": "windows & !mingw"
}
],
"default-features": [
@ -32,7 +32,7 @@
"features": [
"noblas"
],
"platform": "!windows | !static"
"platform": "!windows | !static | mingw"
}
]
},

View File

@ -4250,7 +4250,7 @@
},
"lapack-reference": {
"baseline": "3.11.0",
"port-version": 6
"port-version": 7
},
"lastools": {
"baseline": "2.0.3",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "03ec23ff643f6ac2f398923e46c0f68043ebf055",
"version": "3.11.0",
"port-version": 7
},
{
"git-tree": "c6447c2a6f70504bfbf20f2e649bcc17a6ce67de",
"version": "3.11.0",