google / cmockery

A lightweight library to simplify and generalize the process of writing unit tests for C applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

no vsvars.bat for windows build

h2oast opened this issue · comments

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

@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.