diff options
| author | ruki <[email protected]> | 2020-02-19 22:38:29 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-02-19 09:51:00 +0800 |
| commit | 88afc0485cbadc8f18044fa701c3118700a99cc0 (patch) | |
| tree | 9097a53a58fb936baf3665e54055cb95d39a65c3 /xmake/modules/package/tools/cmake.lua | |
| parent | 6639c577afb292e4e8cc46fa8513e1c6ea952df4 (diff) | |
improve cmake and autotools
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
| -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 4dcf490a6..2cabe6e87 100644 --- a/xmake/modules/package/tools/cmake.lua +++ b/xmake/modules/package/tools/cmake.lua @@ -116,7 +116,7 @@ function install(package, configs, opt) os.vrunv("cmake", argv, {envs = opt.envs or buildenvs(package)}) -- do build and install - if is_host("windows") then + if is_plat("windows") then local slnfile = assert(find_file("*.sln", os.curdir()), "*.sln file not found!") os.vrun("msbuild \"%s\" -nologo -t:Rebuild -p:Configuration=%s -p:Platform=%s", slnfile, package:debug() and "Debug" or "Release", is_arch("x64") and "x64" or "Win32") local projfile = os.isfile("INSTALL.vcxproj") and "INSTALL.vcxproj" or "INSTALL.vcproj" |
