How to avoid PATH type error when using cmake for Visual studio

When using cmake, you may find some "nod found" error for dll or exe files. Those can be avoided by add specific path into PATH definition of your PC. For visual studio c++, however, it is better to

1. Enter DOS command prompt and run vavars32.bat or vcvars64.bat, which is generally inside Microsoft Visual Studio XXX\VC\bin
        or
    Enter VSXXXX command prompt directly.
It would sets all variables needs for VC

2. Run cmake-gui.exe in command line afterwards.

没有评论:

发表评论

VS Code下cmake, c++编译,调试环境的构成步骤

1   下载必须extension      按[Ctrl+Shift+X]打开extension窗口,选择安装"C/C++", "CMake", "CMake Tools" 2   在VSCode下打开作业目录 ...