Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

CLion导入大型项目后cmake执行失败要怎么处理?

公司项目用CLion导入后,光include_directories就有六七千行,大概是因为cmakelists.txt文件过大,执行cmake时附带的参数也就老长老长,到最后reload cmake project时就一直报gcc.exe: error: CreateProcess: No such file or directory这样的错误,后来没办法了只好把自己工作不太会用到的代码目录注释掉了,这样cmake才执行成功。

但因为有一些源文件也会引入其他模块的头文件和函数,导致该部分因为被注释掉而无法通过ctrl+单击来跳转,还得手动去查找文件位置,比较麻烦,请问有没有什么其他办法来解决这个问题?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...