In CLion, header only library: file “does not belong to any project target, code insight features might not work properly”

Little background I was having the same problem, albeit the project was not header-only, nevertheless, the open files from inc folder were throwing the aforementioned warning, even though the CMake file clearly marked that folder to be include_directory. *.hpp files do not belong to ${SOURCE} Since this is a perfectly valid CMake file and adding the include files … Read more

tech