CLion: Syntax checking not working in sub-directories of src/

I’m using CLion to develop an application for the espressif8266 platform.
Unfortunately the syntax checking of CLion only works in source files that are placed directly in src/. Anything placed in sub-directories of src/ doesn’t get recognized properly.

If I modify the add_executable line in CMakeList.txt from
"add_executable(${PROJECT_NAME} ${SRC_LIST} )" to
"add_executable(${PROJECT_NAME} ${SRC_LIST} src)"
everything works mostly fine. This is obviously not a final solution, as the CMakeList file gets rewritten every time the project index gets rebuild.

Am I missing something or is this a bug?

Thanks, fixed!
https://github.com/platformio/platformio/commit/4b4ac58d60d4cf450a600c384e4adca4f45ebf86

Could you re-test it with Redirecting...?

I just tested it. Seems to work fine now :slight_smile:
Thanks for the super fast fix!

Happy coding with PlatformIO! :sun_with_face: