cmockery
cmockery copied to clipboard
can not find vsvars.bat
1 when i clone project 2 execute like readme in windows 3 can not fund vsvars.bat, is it a problem?
@nzb15555196162 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.
Duplicate of #66