Created attachment 128233 [details] an example project SUMMARY since CMake 3.16 STEPS TO REPRODUCE 1. Create CMake Project 2. use target_precompile_headers as intended (make sure you use the header) 3. build the project note : I will leave an example project attached OBSERVED RESULT It builds successfully but the auto-comp and the parser show an error because the headers is not #include-d (it's force included by cmake though) EXPECTED RESULT the auto-comp and the parser should, parse and include the the pre-compiled header (and possibly generate it as needed) for target's source code without manually #include ADDITIONAL INFORMATION https://cmake.org/cmake/help/latest/command/target_precompile_headers.html
it's resolved, tested on 5.6.2, works well.