CLion 报错This file does not belong to any project target,code insight features might not work pro

Discover the treasures of the development artifact, CLion

You will find the tools you need to build your own after installation . Advance to cmake and minGW tools installed, the other what you do not worry about it. Remember when CLion installation, check the path to the Add .

Their new one in C ++ demo project, run without any problems, you can not run from the rest imported. Running time you need to perform the configuration file. How it happened? Is the need to write to the configuration file CmakeLists.txt, there are several configuration files on a few. If This file does not belong appear to any project target, yellow warning, this added to it a few files, and Reload cmake project and you're done! ! !

 

Published 23 original articles · won praise 11 · views 40000 +

Guess you like

Origin blog.csdn.net/u014095878/article/details/104516873