![如何修复这个编译错误?](https://linux22.com/image/1161938/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E8%BF%99%E4%B8%AA%E7%BC%96%E8%AF%91%E9%94%99%E8%AF%AF%EF%BC%9F.png)
如何修复 Ubuntu 18.04 中的这个编译错误?
(weewoo)adam98832@localhost:~$ cd Cockatrice
(weewoo)adam98832@localhost:~/Cockatrice$ mkdir build
(weewoo)adam98832@localhost:~/Cockatrice$ cd build
(weewoo)adam98832@localhost:~/Cockatrice/build$ cmake . . -DWITH_SERVER=1
CMake Error: The source directory "/home/adam98832/Cockatrice/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
答案1
看起来两个“点”之间有一个空格。尝试
cmake .. -DWITH_SERVER=1
在构建目录中。