From ae163d5f0617c6cc5a91957961ed4d669a16b4b1 Mon Sep 17 00:00:00 2001 From: Arseny Kapoulkine Date: Wed, 30 Oct 2024 11:46:36 -0700 Subject: [PATCH] Enable C++17 support in VS2019 and VS2022 projects This enables std::string_view support for NuGet builds --- scripts/pugixml_vs2019.vcxproj | 4 ++++ scripts/pugixml_vs2019_static.vcxproj | 4 ++++ scripts/pugixml_vs2022.vcxproj | 4 ++++ scripts/pugixml_vs2022_static.vcxproj | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/scripts/pugixml_vs2019.vcxproj b/scripts/pugixml_vs2019.vcxproj index 690a790..464229c 100644 --- a/scripts/pugixml_vs2019.vcxproj +++ b/scripts/pugixml_vs2019.vcxproj @@ -99,6 +99,7 @@ $(IntDir)$(TargetName).pdb OldStyle false + stdcpp17 Windows @@ -115,6 +116,7 @@ $(IntDir)$(TargetName).pdb OldStyle false + stdcpp17 Windows @@ -132,6 +134,7 @@ WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) $(IntDir)$(TargetName).pdb OldStyle + stdcpp17 Windows @@ -151,6 +154,7 @@ NDEBUG;_LIB;%(PreprocessorDefinitions) $(IntDir)$(TargetName).pdb OldStyle + stdcpp17 Windows diff --git a/scripts/pugixml_vs2019_static.vcxproj b/scripts/pugixml_vs2019_static.vcxproj index 1747e37..04fa09c 100644 --- a/scripts/pugixml_vs2019_static.vcxproj +++ b/scripts/pugixml_vs2019_static.vcxproj @@ -100,6 +100,7 @@ OldStyle false MultiThreadedDebug + stdcpp17 Windows @@ -117,6 +118,7 @@ OldStyle false MultiThreadedDebug + stdcpp17 Windows @@ -135,6 +137,7 @@ $(IntDir)$(TargetName).pdb OldStyle MultiThreaded + stdcpp17 Windows @@ -155,6 +158,7 @@ $(IntDir)$(TargetName).pdb OldStyle MultiThreaded + stdcpp17 Windows diff --git a/scripts/pugixml_vs2022.vcxproj b/scripts/pugixml_vs2022.vcxproj index efb1350..ee8e224 100644 --- a/scripts/pugixml_vs2022.vcxproj +++ b/scripts/pugixml_vs2022.vcxproj @@ -99,6 +99,7 @@ $(IntDir)$(TargetName).pdb OldStyle false + stdcpp17 Windows @@ -115,6 +116,7 @@ $(IntDir)$(TargetName).pdb OldStyle false + stdcpp17 Windows @@ -132,6 +134,7 @@ WIN32;NDEBUG;_LIB;%(PreprocessorDefinitions) $(IntDir)$(TargetName).pdb OldStyle + stdcpp17 Windows @@ -151,6 +154,7 @@ NDEBUG;_LIB;%(PreprocessorDefinitions) $(IntDir)$(TargetName).pdb OldStyle + stdcpp17 Windows diff --git a/scripts/pugixml_vs2022_static.vcxproj b/scripts/pugixml_vs2022_static.vcxproj index 065a9dc..6dd0956 100644 --- a/scripts/pugixml_vs2022_static.vcxproj +++ b/scripts/pugixml_vs2022_static.vcxproj @@ -100,6 +100,7 @@ OldStyle false MultiThreadedDebug + stdcpp17 Windows @@ -117,6 +118,7 @@ OldStyle false MultiThreadedDebug + stdcpp17 Windows @@ -135,6 +137,7 @@ $(IntDir)$(TargetName).pdb OldStyle MultiThreaded + stdcpp17 Windows @@ -155,6 +158,7 @@ $(IntDir)$(TargetName).pdb OldStyle MultiThreaded + stdcpp17 Windows