CMake错误:无法加载缓存 [英] Cmake Error: could not load cache
本文介绍了CMake错误:无法加载缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用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-- -重新加载CMake项目。
If you are using the CLion, you can use File---"Reload CMake Project".
我在使用git force pull之后遇到了这个问题,并且重新加载了CMake Project解决了该问题。
I meet this problem after using git force pull, and Reload CMake Project solves it.
这篇关于CMake错误:无法加载缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文