Add missing quotes around PCH compile flags (h/t Daniel Gibson)

See comment at 7e583c84a3 (comment-1468822)
This commit is contained in:
Jason Perkins 2014-12-08 11:47:55 -05:00
parent 590981d94d
commit 8756cd3eed

View File

@ -1,4 +1,4 @@
--
--
-- make_cpp.lua
-- Generate a C/C++ project makefile.
-- Copyright (c) 2002-2013 Jason Perkins and the Premake project
@ -98,7 +98,7 @@
function cpp.buildcommand(prj, objext, node)
local iscfile = node and path.iscfile(node.abspath) or false
local flags = iif(prj.language == "C" or iscfile, '$(CC) $(ALL_CFLAGS)', '$(CXX) $(ALL_CXXFLAGS)')
_p('\t$(SILENT) %s $(FORCE_INCLUDE) -o "$@" -MF $(@:%%.%s=%%.d) -c "$<"', flags, objext)
_p('\t$(SILENT) %s $(FORCE_INCLUDE) -o "$@" -MF "$(@:%%.%s=%%.d)" -c "$<"', flags, objext)
end