summaryrefslogtreecommitdiff
path: root/xmake/modules/package/tools/cmake.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2022-03-21 23:06:35 +0800
committerruki <[email protected]>2022-03-21 23:06:35 +0800
commite538f1f2db00e497e61ede972f406855f8d9e13b (patch)
tree6e4fe9eb591c341fda9e32b79446c8c78637b0f4 /xmake/modules/package/tools/cmake.lua
parent91eaf2fb94584daf5a38dbed6876877f7743f56a (diff)
improve xmake.lua for core
Diffstat (limited to 'xmake/modules/package/tools/cmake.lua')
-rw-r--r--xmake/modules/package/tools/cmake.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/modules/package/tools/cmake.lua b/xmake/modules/package/tools/cmake.lua
index 39f1e25f8..b5b47ced2 100644
--- a/xmake/modules/package/tools/cmake.lua
+++ b/xmake/modules/package/tools/cmake.lua
@@ -628,7 +628,7 @@ function _install_for_msvc(package, configs, opt)
local slnfile = assert(find_file("*.sln", os.curdir()), "*.sln file not found!")
local runenvs = _get_msvc_runenvs(package)
local msbuild = assert(find_tool("msbuild", {envs = runenvs}), "msbuild not found!")
- os.vrunv(msbuild.program, {slnfile, "-nologo", "-t:Rebuild",
+ os.vrunv(msbuild.program, {slnfile, "-nologo", "-t:Rebuild", "/nr:false",
(jobs ~= nil and format("-m:%d", jobs) or "-m"),
"-p:Configuration=" .. (package:is_debug() and "Debug" or "Release"),
"-p:Platform=" .. (package:is_arch("x64") and "x64" or "Win32")}, {envs = runenvs})