From 9e058f5691d48fd449cb7f8a9caa32155247bba8 Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 11 Mar 2023 00:48:03 +0800 Subject: fix makefile for nmake --- xmake/plugins/project/make/makefile.lua | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'xmake/plugins/project/make/makefile.lua') diff --git a/xmake/plugins/project/make/makefile.lua b/xmake/plugins/project/make/makefile.lua index 4106238d7..36645654c 100644 --- a/xmake/plugins/project/make/makefile.lua +++ b/xmake/plugins/project/make/makefile.lua @@ -196,9 +196,15 @@ end -- add switches function _add_switches(makefile) - makefile:print("ifneq (%$(VERBOSE),1)") - makefile:print("VV=@") - makefile:print("endif") + if is_subhost("windows") then + makefile:print("!if \"%$(VERBOSE)\" != \"1\"") + makefile:print("VV=@") + makefile:print("!endif") + else + makefile:print("ifneq (%$(VERBOSE),1)") + makefile:print("VV=@") + makefile:print("endif") + end makefile:print("") end -- cgit v1.3.1