← 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

Merged. Updated the CMake plugin to automatically locate staged libraries and files using environment variables, resolving Launchpad bug #1550778. Approved by @sergiusens.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged an update to the CMake plugin that leverages environment variables for find_file, find_library, and find_package. This automatically locates staged libraries and files, resolving Launchpad bug #1550778.

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 Closed without resolution, likely abandoned. The CMake plugin still requires manual environment variable configuration for stage directory library searches.
74%
#347 Backport to 1.x: CMake plugin: Automatically find staged libs and files. snapcraft merged Merged a backport of #345 to the 1.x branch. The CMake plugin now automatically locates staged libraries and files, updating two files with 62 additions and 7 deletions. A minor lint warning was noted but did not block integration.
71%