Skip to content

Commit

Permalink
fix bin path for cmake #5552
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 6, 2024
1 parent 79e2824 commit 7fb1530
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xmake/modules/package/tools/cmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7fb1530

Please sign in to comment.