问题描述
我正在使用 Cmake 尝试为 Eclipse 构建一个项目.当我尝试运行 Cmake 时,出现以下错误:
I'm using Cmake to try to build a project for Eclipse. When I try running Cmake, I get the following error:
Error: could not load cache
Error: Batch build stopped due to Eclipse CDT4 - Unix Makefiles error.
---- Time Elapsed: 3 secs ----
Error: could not load cache
Error: Batch build stopped due to Eclipse CDT4 - Unix Makefiles error.
我完全不知道是什么导致了这种情况.我知道我在正确的目录中运行 Cmake 并且存在 CMakeCache.txt 文件.有人能指出我解决这个问题的正确方向吗?
I'm completely stumped on what might be causing this. I know that I'm running Cmake in the correct directory and the CMakeCache.txt file is present. Could someone point me in the right direction to solve this?
推荐答案
如果你使用的是CLion,你可以使用File---Reload CMake Project".
If you are using the CLion, you can use File---"Reload CMake Project".
我用git force pull后遇到这个问题,Reload CMake Project解决了.
I meet this problem after using git force pull, and Reload CMake Project solves it.
这篇关于Cmake 错误:无法加载缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!