Limiting code inspection search path...
Answered
Hi,
I'm using cpm.cmake in my projects, and when I launch a code inspection, it inspects also the packages added using CPMAddPackage.
Do anyone know how to void inspecting these packages, in which I'm not interested to change anything ?
Thanks.
Please sign in to leave a comment.
Hello!
You can try marking the directories as Excluded - https://www.jetbrains.com/help/clion/project-analysis.html#exclude_directory_from_project_analysis.
Hi,
Unfortunately this is not possible. The option is not offered (see picture).
The included cpm-cmake libraries are in ~/.cache/cpm/<hash> directories, which are not a sub-directory of my main project.
I've tried to exclude the sub-directories of these cached path's, but some of them cannot be excluded (eg: src). I guess it's a problem related to the behaviour of cpm-cmake which clone foreign repositories as “sub-project” and make them part of the main cmake.