Welcome toVigges Developer Community-Open, Learning,Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.2k 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 Answer

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to Vigges Developer Community for programmer and developer-Open, Learning and Share
...