Add CMake option to precompile headers
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 10.4k
- Forks
- 1.3k
- Avg merge
- 2d 13h
- Merged PRs (30d)
- 7
Description
Opening this issue so it can be addressed when the Docker images have their CMake updated to version ``>=3.16``.
Add a CMake option to precompile headers [using the ``target_precompile_headers`` option](https://cmake.org/cmake/help/latest/command/target_precompile_headers.html). This can help speed up compilation times in instances where many header files have to be processed and included recursively.
[Modules (C++20)](https://en.cppreference.com/w/cpp/language/modules) may also be a future target to consider in connection with this one, although support for this feature could still be lacking by compilers.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking the Docker image CMake version and locating the project's CMake configuration for target definitions. Confirm that CMake >=3.16 is available, then determine where the precompiled-header option belongs and verify that the project still configures and builds successfully with it enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cmake, cpp
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100