Bug 421151

Summary: target_precompile_headers support
Product: [Applications] kdevelop Reporter: androawy
Component: Build tools: CMakeAssignee: kdevelop-bugs-null
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.5.1   
Target Milestone: ---   
Platform: unspecified   
OS: Unspecified   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: an example project

Description androawy 2020-05-07 12:14:41 UTC
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
Comment 1 androawy 2021-07-19 13:10:39 UTC
it's resolved, tested on 5.6.2, works well.