Story: Fix Windows CMake warning: uninitialized CMAKE_THREAD_LIBS_INIT
Table of Contents
This page documents a story in Sprint 24. It captures the goal, current status, acceptance criteria, and the tasks that compose it.
Goal
Eliminate the CMake warning fired at every target_link_libraries()
call referencing the legacy ${CMAKE_THREAD_LIBS_INIT} variable,
which can be left uninitialized on some platforms/generators (e.g.
Windows). Replace it with the Threads::Threads imported target,
which find_package(Threads REQUIRED) always defines.
Status
| Field | Value |
|---|---|
| State | DONE |
| Parent sprint | Sprint 24 |
| Now | Nothing. |
| Waiting on | Nothing. |
| Next | Nothing. |
| Last touched | 2026-07-30 |
Acceptance
- Zero occurrences of
CMAKE_THREAD_LIBS_INITremain underprojects/. - The two codegen archetype templates that generated the pattern don't reintroduce it on the next scaffold.
- Full
compass buildandctestare clean.
Tasks
| Task | State | Start | End | Description |
|---|---|---|---|---|
| Scaffold story: Fix Windows CMake warning: uninitialized CMAKE_THREAD_LIBS_INIT | DONE | 2026-07-30 | 2026-07-30 | Story scaffolding rides this task: documents, sprint wiring, and the scaffold PR. Close it before merging that PR. |
| Implement Fix Windows CMake warning: uninitialized CMAKE_THREAD_LIBS_INIT | DONE | 2026-07-30 | 2026-07-30 | Initial task for: Fix Windows CMake warning: uninitialized CMAKE_THREAD_LIBS_INIT |