diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-08 00:23:39 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-08 00:23:39 +0700 |
| commit | b7bd9bb903d38374b6499fc91517a0fdf27ab9a8 (patch) | |
| tree | e7298b1269678fa285ed3c585280be877fc6d656 | |
| parent | 261c7f3de0dd7b19bd259bb9c3620cbb9dc14ff1 (diff) | |
Move to newer C++17 language standard
| -rw-r--r-- | CMakeLists.txt | 3 | ||||
| -rw-r--r-- | Minecraft.Client/Minecraft.Client.vcxproj | 7 | ||||
| -rw-r--r-- | Minecraft.World/Minecraft.World.vcxproj | 7 |
3 files changed, 17 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 327958f4..8c6eb80e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 3.24) project(MinecraftConsoles LANGUAGES C CXX RC ASM_MASM) +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_EXTENSIONS OFF) if(NOT WIN32) message(FATAL_ERROR "This CMake build currently supports Windows only.") diff --git a/Minecraft.Client/Minecraft.Client.vcxproj b/Minecraft.Client/Minecraft.Client.vcxproj index 4d86f036..e574265d 100644 --- a/Minecraft.Client/Minecraft.Client.vcxproj +++ b/Minecraft.Client/Minecraft.Client.vcxproj @@ -1567,6 +1567,7 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata"</Command> <BasicRuntimeChecks>Default</BasicRuntimeChecks> <ShowIncludes>false</ShowIncludes> <AdditionalOptions>/FS %(AdditionalOptions)</AdditionalOptions> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -1796,6 +1797,7 @@ xcopy /q /y /i /s /e $(ProjectDir)DurangoMedia\CU $(LayoutDir)Image\Loose\CU</C <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations> <StringPooling>true</StringPooling> <AdditionalOptions>/FS /Ob3 %(AdditionalOptions)</AdditionalOptions> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -1928,6 +1930,7 @@ xcopy /q /y /i /s /e $(ProjectDir)DurangoMedia\CU $(LayoutDir)Image\Loose\CU</C <BasicRuntimeChecks>Default</BasicRuntimeChecks> <ShowIncludes>false</ShowIncludes> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -2775,6 +2778,7 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata"</Command> <RuntimeTypeInfo>true</RuntimeTypeInfo> <CallAttributedProfiling>Disabled</CallAttributedProfiling> <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -2895,6 +2899,7 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata"</Command> <RuntimeTypeInfo>true</RuntimeTypeInfo> <CallAttributedProfiling>Disabled</CallAttributedProfiling> <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -3015,6 +3020,7 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata"</Command> <RuntimeTypeInfo>true</RuntimeTypeInfo> <CallAttributedProfiling>Disabled</CallAttributedProfiling> <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -3135,6 +3141,7 @@ if not exist "$(TargetDir)\savedata" mkdir "$(TargetDir)\savedata"</Command> <RuntimeTypeInfo>true</RuntimeTypeInfo> <CallAttributedProfiling>Disabled</CallAttributedProfiling> <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> diff --git a/Minecraft.World/Minecraft.World.vcxproj b/Minecraft.World/Minecraft.World.vcxproj index c9191573..b6af9153 100644 --- a/Minecraft.World/Minecraft.World.vcxproj +++ b/Minecraft.World/Minecraft.World.vcxproj @@ -1279,6 +1279,7 @@ <MultiProcessorCompilation>true</MultiProcessorCompilation> <BasicRuntimeChecks>Default</BasicRuntimeChecks> <AdditionalOptions>/FS %(AdditionalOptions)</AdditionalOptions> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -1378,6 +1379,7 @@ <EnableFiberSafeOptimizations>true</EnableFiberSafeOptimizations> <StringPooling>true</StringPooling> <AdditionalOptions>/FS /Ob3 %(AdditionalOptions)</AdditionalOptions> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -1447,6 +1449,7 @@ <MultiProcessorCompilation>true</MultiProcessorCompilation> <BasicRuntimeChecks>Default</BasicRuntimeChecks> <FavorSizeOrSpeed>Speed</FavorSizeOrSpeed> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -1896,6 +1899,7 @@ <PreprocessorDefinitions>_TU_BUILD;_FINAL_BUILD;NDEBUG;_XBOX;_LIB;_CONTENT_PACKAGE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeTypeInfo>true</RuntimeTypeInfo> <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -1965,6 +1969,7 @@ <PreprocessorDefinitions>_TU_BUILD;_FINAL_BUILD;NDEBUG;_XBOX;_LIB;_CONTENT_PACKAGE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeTypeInfo>true</RuntimeTypeInfo> <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -2034,6 +2039,7 @@ <PreprocessorDefinitions>_TU_BUILD;_FINAL_BUILD;NDEBUG;_XBOX;_LIB;_CONTENT_PACKAGE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeTypeInfo>true</RuntimeTypeInfo> <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> @@ -2103,6 +2109,7 @@ <PreprocessorDefinitions>_TU_BUILD;_FINAL_BUILD;NDEBUG;_XBOX;_LIB;_CONTENT_PACKAGE;_CRT_NON_CONFORMING_SWPRINTFS;_CRT_SECURE_NO_WARNINGS;%(PreprocessorDefinitions)</PreprocessorDefinitions> <RuntimeTypeInfo>true</RuntimeTypeInfo> <BasicRuntimeChecks>Default</BasicRuntimeChecks> + <LanguageStandard>stdcpp17</LanguageStandard> </ClCompile> <Link> <GenerateDebugInformation>true</GenerateDebugInformation> |
