'cmake' is not recognised as an internal or external command

后端 未结 4 987
广开言路
广开言路 2020-12-06 04:27

I\'m trying to run cmake in Visual Studio 10, for esys-particle-win.

My path to cmake:C:\\Program Files (x86)\\CMake 2.8\\bin\\cmake.exe

My path

4条回答
  •  萌比男神i
    2020-12-06 05:14

    I'm trying to build a project with my recently downloaded Visual Studio Community 2017, but had no CMake on my path.

    It did not help, even after I had gained VCVars: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" x64

    Instead of separately installing a copy that might work with these answers, although I'm not sure it would have the generators I need(?), I found one in the installation directory, which had a different path than what was in the guide I was using.

    Here is my invocation line: "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -G "Visual Studio 15 2017" -DCMAKE_BUILD_TYPE=%CMAKE_BUILD_TYPE% ..

提交回复
热议问题