summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2021-02-11 00:36:45 +0800
committerruki <[email protected]>2021-02-11 00:36:45 +0800
commit97809015891f39e4bb5d0dd180a5835c0f3dee2c (patch)
treeac7b5d66a1a4063f7e2c97a2364c1be3fda86ed7
parent272ea1c19f0bc0adb8e71fbea5381c5e87ae170c (diff)
add force include for vs project
-rw-r--r--xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
index 9f9afc1fd..b5691a5fa 100644
--- a/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
+++ b/xmake/plugins/project/vstudio/impl/vs201x_vcxproj.lua
@@ -435,6 +435,7 @@ function _make_common_item(vcxprojfile, vsinfo, target, targetinfo, vcxprojdir)
if pcoutputfile then
vcxprojfile:print("<PrecompiledHeaderOutputFile>%s</PrecompiledHeaderOutputFile>", path.relative(path.absolute(pcoutputfile), vcxprojdir))
end
+ vcxprojfile:print("<ForcedIncludeFiles>%s;%%(ForcedIncludeFiles)</ForcedIncludeFiles>", path.filename(pcheader))
end
vcxprojfile:leave("</ClCompile>")