c++ - 如何修复 CMake 错误:源目录
问题描述
我正在尝试使用 CMake 编译简单的 c++ 文件,但出现以下错误:CMake 错误:源目录“/home/john/Desktop/example”似乎不包含 CMakelists.txt
john@john:~/ Desktop/sample$ ls
CMakelists.txt hello.cpp
john@john:~/ Desktop/sample$ cmake .
CMake Error: The source directory "/home/john/Desktop/example" does not appear to contain CMakelists.txt
我已经检查过其他有关此的帖子,但没有一个可以帮助我解决它
解决方案
正如@JesperJuhl 指出的那样,问题在于大写。感谢大家的贡献。
suppose to be CMakeLists.txt not CMakelists.txt
对于这种不必要的问题,我真的很抱歉。不过下次我会更小心的
推荐阅读
- python - 我如何识别图像?
- email - 如何自动化谷歌表格电子邮件在配额内和每天发送?
- python - /accounts/profile/'User'对象的Django AttributeError在更新配置文件时没有属性'get'
- python - Python 类型:如何在类型提示中引用动态创建的类
- z3 - 是否有可能证明这个定义的函数是 z3 中的对合?
- python - 不和谐机器人编程
- r - 如何使用 stat_density 和时间序列(x 轴上的 Posixct)?
- angular - 从角度 10 的反应形式的输入数组中获取数据
- swift - 如何快速将用户名、密码安全地保存在钥匙串中
- node.js - TypeError:URL 不是构造函数 - react-dev-utils/getPublicUrlOrPath.js