← Back to issue list

CMake plugin: Enable find_library etc. to find in stage directory

View original Launchpad issue

Metadata

Project
snapcraft (launchpad)
Number
#1550778
Type
issue
State
closed
Author
~kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

CMake staged-library discovery was merged in canonical/snapcraft#345 (commits 1673a17a5 and a0ba21e76), resolving LP #1550778.

Resolution: closed resolved

Reason: The maintainer linked merged PR canonical/snapcraft#345 as the solution. It added stage-aware CMake environment variables so find_library and similar commands can discover staged libraries and files.

Evaluated by: mr-cal-bot

No scores available.

Issue body

CMake's find_library (and similar commands) use environment variables to determine its search paths. However, the CMake plugin doesn't take advantage of these, thus requiring snap authors to always pass them in manually if their part depends on one in the stage directory.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved CMake staged-library discovery was merged in canonical/snapcraft#345 (commits 1673a17a5 and a0ba21e76), resolving LP #1550778.
stealth/space-bunny-alpha — closed resolved Resolved by merged snapcraft#345 (commits 1673a17a5 and a0ba21e76), enabling CMake to discover staged libraries and files automatically.
stealth/space-bunny-alpha — closed resolved Fixed by canonical/snapcraft#345, merged as a0ba21e76 (implementation 1673a17a5), enabling CMake find commands to locate staged libraries and files.
qwen/qwen3.6-35b-a3b — — Requesting automatic stage directory search paths for CMake's find_library was abandoned and closed without resolution due to inactivity.
qwen/qwen3.6-35b-a3b — — Closed without resolution, likely abandoned. The CMake plugin still requires manual environment variable configuration for stage directory library searches.
qwen/qwen3.6-35b-a3b — — Closed without resolution. The CMake plugin remains unchanged, requiring snap authors to manually configure environment variables for stage directory library searches.
qwen3.6-35b-a3b-mtp-q6 — — CMake plugin feature request for automatic stage directory support in find_library was closed without resolution. Zero comments and no associated pull requests indicate the request was abandoned.

Update history

Date Change
created

Related work

  • Likely Fixed By: canonical/snapcraft#345 (confidence 100%)

    Merged PR implementing automatic discovery of staged libraries and files, with commits 1673a17a5 and a0ba21e76.

Related issues

Issue Project State Summary Similarity
#345 CMake plugin: Automatically find staged libs and files. snapcraft merged CMake staged-library discovery was merged in canonical/snapcraft#345 via a0ba21e76 (implementation 1673a17a5), setting search environment variables so staged libs and files are found; fixes LP #1550778.
90%
#347 Backport to 1.x: CMake plugin: Automatically find staged libs and files. snapcraft merged Merged into 1.x as snapcraft#347, backporting #345 so the CMake plugin automatically locates staged libraries and files.
75%