diff options
| author | ruki <[email protected]> | 2024-09-30 22:44:40 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2024-09-30 22:44:40 +0800 |
| commit | 38b735fdaab5b1f1717820462aa294af7587bd4f (patch) | |
| tree | 1ce4a6aa0c38f29de124f9f07be7f17dffc1076a | |
| parent | 2ec672aef4e271c6d08e889576809cd6443934b3 (diff) | |
fix match pattern
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
