← All tasks
cppgoogle/bloaty #199Not a task: already works

libbloaty target not installed

envgap__google__bloaty-199

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
2bba3e0135c1f61d22f83bff5db55d8800c1d068
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

google/bloaty #199 · read the original issue
The `libbloaty` library target is not installed in CMakeLists.txt.  This makes it impossible to link against a system installed libbloaty (e.g. installed with `make install`) in either static or dynamic library configuration (BUILD_SHARED_LIBS=OFF,ON)



Additionally, `${CMAKE_INSTALL_PREFIX}/bin/bloaty` won't work when linked against a dynamic libbloaty, as it won't be able to find the library on the default search path.



I recommend adding `libbloaty` to the list of `TARGETS` when calling the `install` command, or forcing it to be a static library when calling `add_library` if it's not meant to be linked to externally.
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
[]