我在vs安装了cmake也配置了环境变量发现还是不行。
因为我打开的是别人的项目,然后出现这个错误
Tell CMake where to find the compiler by setting either the environment
variable “CXX” or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
我发现我的打开的CMakeList.txt中
和我的cmake不一致导致报错
这个你的camke版本一样就不会报错了
查看方式为 cmake --version
可能我是新手吧,会产生这样的错误。