@@ -73,19 +73,19 @@ solution ("lib" .. tgtname)
73
73
location (' .' )
74
74
75
75
project (tgtname )
76
- local outdir = " MSVC_ $(" .. transformMN (" Platform" ) .. " )_$(" .. transformMN (" Configuration" ) .. " )." .. action
76
+ local outdir = " MSVC \ $ (" .. transformMN (" Platform" ) .. " )_$(" .. transformMN (" Configuration" ) .. " )." .. action
77
77
uuid (" 47726E76-07B8-433D-A9AF-01111EB92825" )
78
78
language (" C" )
79
79
kind (" StaticLib" )
80
80
targetname (tgtname )
81
- flags {" Unicode" , " NativeWChar" ,}
81
+ flags {" Unicode" , " NativeWChar" , " FatalWarnings " }
82
82
targetdir (outdir )
83
83
objdir (outdir .. " \\ Intermediate" )
84
84
libdirs {" $(IntDir)" }
85
85
includedirs {" ." } -- not really needed, but we try to stay true to makefile.msvc
86
- defines {" WINVER=0x0501" , " WIN32" , " _CRT_SECURE_NO_WARNINGS" , " _CRT_NONSTDC_NO_DEPRECATE" ,}-- "__STDC_WANT_SECURE_LIB__=1", "_CRT_HAS_CXX17=0",}
87
- buildoptions {" /Z7" , " /Wall" , " /wd4146" , " /wd4127" , " /wd4668" , " /wd4710" , " /wd4711" , " /wd4820" , " /WX " ,} -- "/wd5045" does not work on VS2008!
88
- -- /Z7 for a static lib includes all debug symbols inside the object files, meaning there is no need to distribute PDB and .lib file
86
+ defines {" WIN32_LEAN_AND_MEAN " , " WINVER=0x0501" , " WIN32" , " _CRT_SECURE_NO_WARNINGS" , " _CRT_NONSTDC_NO_DEPRECATE" ,}-- "__STDC_WANT_SECURE_LIB__=1", "_CRT_HAS_CXX17=0",}
87
+ buildoptions {" /Z7" , " /Wall" , " /wd4146" , " /wd4127" , " /wd4668" , " /wd4710" , " /wd4711" , " /wd4820" ,}
88
+ -- /Z7 for a static lib includes all debug symbols inside the object files, meaning there is no need to distribute PDB _and_ .lib file
89
89
90
90
excludes
91
91
{
@@ -131,3 +131,9 @@ solution ("lib" .. tgtname)
131
131
132
132
configuration (" vs2003 or vs2005" )
133
133
buildoptions {" /wd4242" , " /wd4244" ,}
134
+
135
+ configuration (" vs2019 or vs2022" )
136
+ buildoptions {" /wd5045" ,}
137
+
138
+ configuration (" vs2017 or vs2019 or vs2022" )
139
+ buildoptions {" /permissive-" ,}
0 commit comments