36 lines
981 B
Markdown
36 lines
981 B
Markdown
[Reviewed]
|
|
# ADR-0002: CMake target-oriented builds
|
|
|
|
## Status
|
|
|
|
Adopted for proof.
|
|
|
|
## Context
|
|
|
|
One kernel must build for Windows/Linux servers, CLI, tests and a later native client.
|
|
|
|
## Decision
|
|
|
|
CMake 3.28+, Ninja, checked-in configure/build/test presets. Target evo_simulation alias evo::simulation exports includes and C++ requirements. Scope warnings/analysis to owned targets.
|
|
|
|
## Alternatives Considered
|
|
|
|
Meson is concise but another ecosystem; Bazel remote execution does not yet justify machinery; platform project files duplicate contracts.
|
|
|
|
## Benefits
|
|
|
|
One graph, standard IDE integration and CTest.
|
|
|
|
## Costs
|
|
|
|
Requires disciplined target/cache management.
|
|
|
|
## Risks
|
|
|
|
Global flags infect dependencies; missing optional tools can falsely appear successful.
|
|
|
|
## Consequences
|
|
|
|
Requested analysis/sanitizers fail when unsupported. Out-of-source builds and no proof configure-time downloads. [CMake presets](https://cmake.org/cmake/help/v3.28/manual/cmake-presets.7.html).
|
|
|