makefile - 找不到 CMAKE_C_COMPILER

标签 makefile cmake windows-10 zlib cmake-gui

我在 Windows 10 Home Edition 64 位上的 Visual Studio Enterprise 2015 和 CMake 3.7.1 中收到此错误。

说明是:

Use CMake to build zlib <PFD_DIR>/renderdoc/renderdoc/3rdparty/zlib

我这样做了(不确定这是否是正确的方法,或者我应该为 bin 目录选择什么): enter image description here

 No CMAKE_C_COMPILER could be found.

renderdoc 目录结构如下所示: enter image description here

enter image description here

最佳答案

在配置中选择了 Visual Studio 15 2017。清除缓存并在配置中选择 Visual Studio 14 2015 win64 并且它有效。

关于makefile - 找不到 CMAKE_C_COMPILER,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41154237/

相关文章:

cmake/ctest,valgrind 输出为 xml

c# - NotifyIcon Windows 10 适用于调试但不适用于发布

javascript - Tampermonkey 的全系统替代方案

makefile - 覆盖makefile中的变量

docker - “dockerfile”文本文件忙

cmake - 在 gcloud 上部署 Flask 应用程序时出现 "No CMAKE_CXX_COMPILER could be found"错误

javascript - "Could not find a JavaScript runtime"。我如何安装一个?

css - 如何在 Makefile 中使用 wc 来监视更改并在每次更新时运行命令?

c - 尝试使现有的 c 项目适应 CUDA,Makefile 找不到 .cu 文件

linux - 使用 vcpkg 安装 ffmpeg