我正在尝试使用 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
对于不必要的问题,我真的很抱歉。但下次我会更加小心
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句