CLion and add_custom_target

Answered

Hello!

In my project I have several custom targets.

CLion generate build configurations for them, I can run them, that's fine.

There is an issue, however. When I switch configuration in the upper-right corner, CLion looses its understanding about what's going on in the project. That is, include_directories commands gets ignored, set cxx standard gets ignored, everything goes red.

So the question is how do I work with custom targets without switching targets all the time and going through reindexing?

0
1 comment

Unfortunately, for now you have to provide a non-custom target for CLion (with proper include directories) in order for code insight to work. Please follow the related issue in our tracker.

0

Please sign in to leave a comment.