diff options
| -rw-r--r-- | xmake/modules/package/tools/cmake.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua index d73e3c0e1..3cf548d0a 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -36,7 +36,8 @@ function install(package, configs) } if is_plat("windows") and is_arch("x64") then - table.insert(argv, "-A x64") + table.insert(argv, "-A") + table.insert(argv, "x64") end for name, value in pairs(configs) do @@ -46,6 +47,7 @@ function install(package, configs) end end + table.insert(argv, '..') os.vrunv("cmake", argv) if is_host("windows") then |
