# sakra/cotire

CMake module to speed up builds.

Repository: https://github.com/sakra/cotire
Canonical: https://ross.abutalabs.com/products/cotire
Language: CMake
License: MIT
License Family: permissive
Topics: cmake
Archived: true
Last push: 2019-12-23T15:00:32+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 5288, "days_push": 2445, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1297, forks 140 (observed 2026-08-28T04:04:17.111314+00:00)

## What it is
Cotire is a CMake module that speeds up C/C++ builds by automatically setting up precompiled headers and single compilation unit (unity) builds for CMake targets. It requires no source code changes and works with Clang, GCC, Intel, and Visual Studio compilers.

## Use cases
- speed up cmake builds with precompiled headers
- set up unity builds for a cmake project
- reduce compile times for large c++ codebases
- automatically generate prefix headers from includes
- accelerate builds without modifying source code

## When to choose
- maintaining a legacy project on CMake older than 3.16 that needs faster builds
- you want automated precompiled header and unity build setup with minimal CMake changes

## When to avoid
- using CMake 3.16 or newer, which has built-in precompiled header and unity build support
- you need active maintenance or support for new compilers/generators

## Facets
- artifact type: library
- maturity: abandoned
- function: build-tool, developer-tools
- domain: developer-tools, performance, compilers
- platform: windows, cpp, c
- tags: cmake, precompiled-headers, unity-builds, build-acceleration, linux, macos

## Member repositories
- sakra/cotire (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:17.111314+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T04:53:54.216969+00:00, confidence not recorded.
  - readme: https://github.com/sakra/cotire (fetched 2026-08-28T04:04:17.111314+00:00, sha 9e2dd53732bd)
- Data as of 2026-08-30T08:39:29.467469+00:00.
