cmake报错No CMAKE_C_COMPILER could be found该怎么解决?

cmake报错:
Selecting Windows SDK version 10.0.14393.0 to target Windows 10.0.17134.
The C compiler identification is MSVC 19.0.24215.1
The CXX compiler identification is MSVC 19.0.24215.1
CMake Error at CMakeLists.txt:7 (PROJECT):
No CMAKE_C_COMPILER could be found.

CMake Error at CMakeLists.txt:7 (PROJECT):
No CMAKE_CXX_COMPILER could be found.

Configuring incomplete, errors occurred!
See also "E:/software/02bullet/bullet3/CMakeFiles/CMakeOutput.log".

我用的是vs2015,但是cmake中选择vs2015的编译器就是会报错,用vs2013倒是能编译,但是用vs2015打开解决方案后,又提示里面的部分代码与vs版本不兼容之类的。

我想问的是有没有什么办法可以直接用vs2015的编译器直接编译成功的啊?本人cmake小白,望大佬求教。

https://blog.csdn.net/iamubbting/article/details/78711720

楼主参考下这篇博客,应该对你有帮助。

https://blog.csdn.net/zy2317878/article/details/78534782