Skip to content

Commit

Permalink
Merge pull request #5579 from xmake-io/cmake
Browse files Browse the repository at this point in the history
fix bin path for cmake #5552
  • Loading branch information
waruqi authored Sep 6, 2024
2 parents 79e2824 + 7fb1530 commit 6d0d8e0
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 6d0d8e0

Please sign in to comment.