google / cmockery

A lightweight library to simplify and generalize the process of writing unit tests for C applications.
Apache License 2.0
1.04k stars 371 forks source link

no vsvars.bat for windows build #66

Open h2oast opened 5 years ago

h2oast commented 5 years ago

release-0.1.2 there is not a vsvars.bat scripts for windows build

seppestas commented 6 months ago

@h2oast vsvars.bat was a bat file that comes with Visual Studio. It basically sets up environmental variables to use the Visual Studio compiler / toolchain.

In more recent versions of Visual Studio this was renamed to VsDevCmd.bat, see https://learn.microsoft.com/en-us/visualstudio/ide/reference/command-prompt-powershell?view=vs-2022#developer-command-prompt

More in-depth information: https://renenyffenegger.ch/notes/Windows/development/Visual-Studio/environment-variables/index

The documentation could use an update, though arguably better C testing suites exist now and cmockery should only be used for legacy projects. I recommend Unity, Cgreen or Googletest.