Last active
April 7, 2024 07:09
-
-
Save bw2012/069bcb43d0983217dc36f782fc2f1bcc to your computer and use it in GitHub Desktop.
How to enable C++17 in UE4 and Visual Studio 2017
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tested with UE 4.21 | |
1. Open your UE4 engine folder [Program files or something else you like]\Epic Games\UE_4.21\Engine\Source\Programs\UnrealBuildTool | |
2. Open file Epic Games\UE_4.21\Engine\Source\Programs\UnrealBuildTool\Platform\Windows\VCToolChain.cs | |
3. Find method void AppendCLArguments_CPP(CppCompileEnvironment CompileEnvironment, List<string> Arguments) | |
4. Add Arguments.Add("/std:c++17"); to begin of method | |
5. Open Epic Games\UE_4.21\Engine\Source\Programs\UnrealBuildTool\UnrealBuildTool.csproj in MSVS 2017 | |
6. Rebuild UnrealBuildTool | |
7. Open your project and rebuild it | |
8. Enjoy c++17 features |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment