- 点击debug后会加载cmake插件,调试时出现
Failed to prepare executable target with name ‘undefined‘
错误:
- 如果代码没有写错的话,可将CMKE插件的project_state中的Debuge选项从all修改成对应的debuge目标即可(有些项目可能会构建多个目标,我这个是没在CMakeLists.txt文件加上
project(myapp)
)
Failed to prepare executable target with name ‘undefined‘
错误:project(myapp)
)