CPack error on Windows with NSIS due to invalid character in component name 'fmt-core'
envgap__fmtlib__fmt-4441
01 / FAILURE SIGNATURE
As reported upstream
`Error: invalid characters in variable name "fmt-core_selected", use only characters [a-z][A-Z][0-9], '.' and '_'` as NSIS cannot have the `-` character in variable names.
Not a benchmark task.
- The project already builds and runs before the fix, so there is nothing to repair.
02 / ENVIRONMENT RECIPE
- Base commit
eb9a95d42688b32289c00c2b802ea650f57d4481- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
fmtlib/fmt #4441 · read the original issue
> The header-only mode is not recommended and we shouldn't change install behavior based on it but a PR to rename the component to `fmt-core` is welcome (fmtlib is the name of the github org, not the project). I think it can be done unconditionally since the name is global. _Originally posted by @vitaut in [#4283](https://github.com/fmtlib/fmt/issues/4283#issuecomment-2568124123)_ The rename of the "core" package to "fmt-core" causes CPack packaging with NSIS on Windows to fail with the message `Error: invalid characters in variable name "fmt-core_selected", use only characters [a-z][A-Z][0-9], '.' and '_'` as NSIS cannot have the `-` character in variable names.
04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]