From d8c8487a9839ed5714b8c62dba48fcfceb58f2fa Mon Sep 17 00:00:00 2001 From: Claus Jensby Madsen Date: Sat, 25 Dec 2021 12:20:05 +0100 Subject: [PATCH] Add build instructions for building with Visual Studio from the command line (#3655) --- readme.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/readme.md b/readme.md index 86587d2b6..2c834ad9f 100644 --- a/readme.md +++ b/readme.md @@ -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/).