← Back to issue list

CMake plugin: Automatically find staged libs and files.

View original Github issue

Metadata

Project
snapcraft
Number
#345
Type
pull request
State
merged
Author
kyrofa
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed resolved

Reason: PR #345 was merged as commit a0ba21e76, with implementation commit 1673a17a5. It updates the CMake plugin so find_file(), find_library(), and find_package() can discover dependencies from the staged part.

Evaluated by: mr-cal-bot

No scores available.

Issue body

CMake's `find_file()`, `find_library()`, `find_package()`, and similar functions use environment variables to determine where to look. This PR resolves LP: [#1550778](https://bugs.launchpad.net/snapcraft/+bug/1550778) by updating the CMake plugin to utilize them.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved 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.
stealth/space-bunny-alpha — closed resolved Merged in canonical/snapcraft#345 via commits 1673a17a5 and a0ba21e76, enabling CMake discovery of staged libraries and files through environment variables; resolved LP #1550778.
qwen/qwen3.6-35b-a3b — — Merged. Updated the CMake plugin to automatically locate staged libraries and files using environment variables, resolving Launchpad bug #1550778. Approved by @sergiusens.
qwen3.6-35b-a3b-mtp-q6 — — Merged. Updates the CMake plugin to leverage environment variables for locating staged libraries and files, resolving Launchpad bug #1550778. Approved by @sergiusens.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1550778 CMake plugin: Enable find_library etc. to find in stage directory snapcraft (launchpad) closed CMake staged-library discovery was merged in canonical/snapcraft#345 (commits 1673a17a5 and a0ba21e76), resolving 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.
77%