我正在使用CLion和CMake,最近我在CMakeLists中添加了几千个可执行文件。但是,当我尝试立即构建时,出现以下错误:
Makefile:22669: warning: overriding recipe for target '.PHONY'
Makefile:22660: warning: ignoring old recipe for target '.PHONY'
Makefile:22678: warning: overriding recipe for target '.PHONY'
Makefile:22669: warning: ignoring old recipe for target '.PHONY'
Makefile:32887: *** missing separator. Stop.
错误似乎来自22,000+和32,000+行,但是当我打开makefile(错误消息上有一个链接)时,它似乎只有178行。 Makefile也是由CMake生成的,所以我不确定问题出在哪里。 CMake有问题吗?我该怎么解决?