Can CLion find headers files with a CMake custom toolchain ?

Hello,
I set up a new project and I use a custom CMake toolchain that I specify in CMake options. Everything is working fine and the project builds, but CLion seems not to find the headers specified using target_include_directories. That is annoying because all the editor functionalities are not available, and everywhere in my program, parts of code are red. Is there a way to add the include directory to the "header search paths" or do anything else to solve the problem?
Thanks.

2 comments
Comment actions Permalink

Hi Nicolas.

target_include_directories does add path to include search paths. Could you please send us an exampe to reproduce the problem? If you could send us a sample project it would be perfect!

0

Please sign in to leave a comment.