Skip to content

Commit

Permalink
fix grammar problem and add test
Browse files Browse the repository at this point in the history
  • Loading branch information
hahahahbenny committed Sep 22, 2024
1 parent c49e45c commit a5554a5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/l/lapack/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@ package("lapack")
set_homepage("https://netlib.org/lapack/")
set_description("LAPACK--Linear Algebra Package is a standard software library for numerical linear algebra")

add_urls("https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v$(version).tar.gz",
add_urls("https://github.com/Reference-LAPACK/lapack/archive/refs/tags/$(version).tar.gz",
"https://github.com/Reference-LAPACK/lapack.git")

add_versions("3.12.0", "eac9570f8e0ad6f30ce4b963f4f033f0f643e7c3912fc9ee6cd99120675ad48b")
add_versions("v3.12.0", "eac9570f8e0ad6f30ce4b963f4f033f0f643e7c3912fc9ee6cd99120675ad48b")

add_deps("cmake", "gfortran")

add_links("cblas", "blas", "lapack", "lapacke")
add_links( "lapacke", "lapack", "cblas", "blas")

on_install("linux", function (package)
local configs = {"-DLAPACKE=ON", "-DBUILD_TESTING=OFF", "-DCBLAS=ON"}
local configs = {"-DLAPACKE=ON", "-DBUILD_TESTING=OFF", "-DCBLAS=ON", "-DBLAS++=ON", "-DLAPACK++=ON"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)
end)

on_test(function (package)

assert(package:has_cfuncs("cblas_snrm2", {includes = "cblas.h"}))
assert(package:has_cfuncs("LAPACKE_dsyev", {includes = "lapacke_utils.h"}))
end)

0 comments on commit a5554a5

Please sign in to comment.