Bug 421151 - target_precompile_headers support
Summary: target_precompile_headers support
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: Build tools: CMake (other bugs)
Version First Reported In: 5.5.1
Platform: unspecified Unspecified
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-07 12:14 UTC by androawy
Modified: 2021-07-19 13:10 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
an example project (1.95 KB, application/zip)
2020-05-07 12:14 UTC, androawy
Details

Note You need to log in before you can comment on or make changes to this bug.
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.