LMMS / LMMS/lmms

Add CMake option to precompile headers

Open
#6,856 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cmake enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.