Add build instructions for building with Visual Studio from the command line (#3655)

This commit is contained in:
Claus Jensby Madsen 2021-12-25 12:20:05 +01:00 committed by GitHub
parent 8537331ad6
commit d8c8487a98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -80,6 +80,14 @@ Use the cppcheck.sln file. The file is configured for Visual Studio 2019, but th
To compile with rules, select "Release-PCRE" or "Debug-PCRE" configuration. pcre.lib (pcre64.lib for x64 builds) and pcre.h are expected to be in /externals then. A current version of PCRE for Visual Studio can be obtained using [vcpkg](https://github.com/microsoft/vcpkg).
### Visual Studio (from command line)
If you do not wish to use the Visual Studio IDE, you can compile cppcheck from the command line the following command.
```shell
msbuild cppcheck.sln
```
### VS Code (on Windows)
Install MSYS2 to get GNU toolchain with g++ and gdb (https://www.msys2.org/).