When executing the command:

cmake.exe -G "NMake Makefiles" path_to_project

I get the answer:

- Check for a working C compiler: C: / Program Files (x86) / Microsoft Visual Studio 14.0 / vc / bin / cl.exe - C: / Program Files / CMake / share / cmake-3.7 / Modules /CMakeTestCCompiler.cmake:51 (message): The C compiler "C: / Program Files (x86) / Microsoft Visual Studio 14.0 / VC / bin / cl.exe"

Found the same problem here , but nothing helps.

What could be the reason?

    1 answer 1

    Required:

    Microsoft Visual Studio 14.0\Common7\Tools\VsDevCmd.bat

    The script adjusts the environment