← All tasks
cppgabime/spdlog #2678Not a task: already works

CMake: Build directory `spdlogConfigTargets.cmake` doesn't provide a `spdlog::spdlog_header_only` target

envgap__gabime__spdlog-2678

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
811bc4c7a9a4b192c6fa59109476e214f0eb50c0
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

gabime/spdlog #2678 · read the original issue
The installed version of `spdlogConfigTargets.cmake` includes both the `spdlog::spdlog` and `spdlog::spdlog_header_only` targets. The build directory version only provides the compiled library target, which causes issues for dowstream consumers of the header only version.



This is caused by a mismatch between what targets are exported via the `install` and `export` commands.

Updating line https://github.com/gabime/spdlog/blob/v1.x/CMakeLists.txt#L339 to also include spdlog_header_only would fix this issue.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]