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.
请先登录再写评论。
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!
The problem is just identical to this one : https://devnet.jetbrains.com/message/5559019#5559019.