CMake Zephyr project won't recognize defines from autoconf.h without #include "autoconf.h"

Answered

I am trying to write a BLE Zephyr project for the NRF52833. CLion doesn't seem to recognize that autoconf.h is included in all files via the build system. This means I have to manually add #include "autoconf.h" to all files for CLion to parse them properly, even though the files will build without issue if the #include line isn't there. Is there anything I can add to my CMakeLists.txt file (or some other file) to get CLion to properly handle autoconf.h?

2 comments
Comment actions Permalink

Hello!

Sounds related to https://youtrack.jetbrains.com/issue/CPP-8733 (see https://youtrack.jetbrains.com/issue/CPP-16086 which is marked as a duplicate of this issue). CPP-8733 is in progress right now, feel free to comment or upvote the issue in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

1
Comment actions Permalink

Awesome, glad to hear it's being worked on!

0

Please sign in to leave a comment.