From c6306f1a8fca819d2e37de0172157e59ea4ceed9 Mon Sep 17 00:00:00 2001 From: Zheng Zeng Date: Mon, 7 Oct 2024 17:35:48 -0700 Subject: [PATCH] linalg: fix checksum (#5441) * Update xmake.lua Change the hash to lower case to avoid unmached checksum error. * remove limit --------- Co-authored-by: star9029 --- packages/l/linalg/xmake.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/l/linalg/xmake.lua b/packages/l/linalg/xmake.lua index b0512c4df..4c38891b7 100644 --- a/packages/l/linalg/xmake.lua +++ b/packages/l/linalg/xmake.lua @@ -7,18 +7,18 @@ package("linalg") add_urls("https://github.com/sgorsten/linalg/archive/refs/tags/$(version).tar.gz", "https://github.com/sgorsten/linalg.git") - add_versions("v2.2", "28640228988186EDAF7729177BFAB4C91170B303AD489407A4228CEB55A73EC2") + add_versions("v2.2", "28640228988186edaf7729177bfab4c91170b303ad489407a4228ceb55a73ec2") - on_install("windows", "linux", "macosx", function (package) + on_install(function (package) os.cp("linalg.h", package:installdir("include")) end) on_test(function (package) assert(package:check_cxxsnippets({test = [[ - using namespace linalg::aliases; - float4 test(float3 a, float3 b, float3 c) { - float3 n = cross(b-a, c-a); - return {n, -dot(n,a)}; - } - ]]}, {configs = {languages = "c++11"}, includes = "linalg.h"})) + using namespace linalg::aliases; + float4 test(float3 a, float3 b, float3 c) { + float3 n = cross(b-a, c-a); + return {n, -dot(n,a)}; + } + ]]}, {configs = {languages = "c++11"}, includes = "linalg.h"})) end)