Skip to content

Commit 573cc08

Browse files
committed
fix: remove JSON_DLL from Release|x64 and update toolset to v145
Release|x64 builds use static jsoncpp linking, so __declspec(dllimport) decorations from JSON_DLL cause unresolved symbol link errors. Remove JSON_DLL from Release|x64 only; Release|Win32 retains it as those builds use jsoncpp as a DLL. Also update PlatformToolset from v143 to v145 (VS 2022 17.x).
1 parent 38b68ac commit 573cc08

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

webem.vcxproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
<UseDebugLibraries>false</UseDebugLibraries>
5555
<WholeProgramOptimization>true</WholeProgramOptimization>
5656
<CharacterSet>MultiByte</CharacterSet>
57-
<PlatformToolset>v143</PlatformToolset>
57+
<PlatformToolset>v145</PlatformToolset>
5858
</PropertyGroup>
5959
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
6060
<ImportGroup Label="ExtensionSettings">
@@ -160,7 +160,7 @@
160160
<Optimization>MaxSpeed</Optimization>
161161
<FunctionLevelLinking>true</FunctionLevelLinking>
162162
<IntrinsicFunctions>true</IntrinsicFunctions>
163-
<PreprocessorDefinitions>WIN32;NOMINMAX;NDEBUG;WWW_ENABLE_SSL;WITH_TLS;HAVE_SNPRINTF;JSON_DLL;WEBSERVER_DONT_USE_ZIP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
163+
<PreprocessorDefinitions>WIN32;NOMINMAX;NDEBUG;WWW_ENABLE_SSL;WITH_TLS;HAVE_SNPRINTF;WEBSERVER_DONT_USE_ZIP;%(PreprocessorDefinitions)</PreprocessorDefinitions>
164164
<AdditionalIncludeDirectories>include;src;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
165165
<RuntimeLibrary>MultiThreaded</RuntimeLibrary>
166166
<DebugInformationFormat>None</DebugInformationFormat>
@@ -223,4 +223,4 @@
223223
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
224224
<ImportGroup Label="ExtensionTargets">
225225
</ImportGroup>
226-
</Project>
226+
</Project>

0 commit comments

Comments
 (0)