diff options
| author | ruki <[email protected]> | 2024-09-06 23:01:25 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2024-09-06 23:01:25 +0800 |
| commit | 6d0d8e066ab4b0e7702476fbbac82f2af70eda61 (patch) | |
| tree | b63d907c258d9b5619812ba20acdb8f795573e0b | |
| parent | 79e282463c92e3ecd9229a647d8072eb3b5fdc05 (diff) | |
| parent | 7fb15303e334f1169add27ad5a53b4a52396cea0 (diff) | |
Merge pull request #5579 from xmake-io/cmake
fix bin path for cmake #5552
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index 8e103959d..13907c840 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -56,7 +56,8 @@ end function _translate_bin_path(bin_path) if is_host("windows") and bin_path then bin_path = bin_path:gsub("\\", "/") - if not bin_path:find(string.ipattern("%.exe$")) and + if not os.isfile(bin_path) and + not bin_path:find(string.ipattern("%.exe$")) and not bin_path:find(string.ipattern("%.cmd$")) and not bin_path:find(string.ipattern("%.bat$")) then bin_path = bin_path .. ".exe" |
