From 38b735fdaab5b1f1717820462aa294af7587bd4f Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 30 Sep 2024 22:44:40 +0800 Subject: fix match pattern --- xmake/modules/package/tools/cmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 493b30d80..56be71442 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -1209,7 +1209,7 @@ function configure(package, configs, opt) "CMAKE_SHARED_LINKER_FLAGS") local shrink = false table.remove_if(argv, function (idx, value) - local k, v = value:match("-D(.*)=(.*)") + local k, v = value:match("%-D(.*)=(.*)") if k and v and long_options:has(k) and #v > 128 then table.insert(cmake_argv, ("set(%s \"%s\")"):format(k, tostring(v))) shrink = true -- cgit v1.3.1