Skip to content

Add paths from CMAKE_PREFIX_PATH env var to CMAKE_FIND_ROOT_PATH#1756

Open
toivosnare wants to merge 1 commit intocross-rs:mainfrom
toivosnare:cmake-prefix-path
Open

Add paths from CMAKE_PREFIX_PATH env var to CMAKE_FIND_ROOT_PATH#1756
toivosnare wants to merge 1 commit intocross-rs:mainfrom
toivosnare:cmake-prefix-path

Conversation

@toivosnare
Copy link
Copy Markdown

The cmake-rs crate passes the install paths of dependencies via the CMAKE_PREFIX_PATH environment variable instead of the the normal CMAKE_PREFIX_PATH cache variable: https://github.com/rust-lang/cmake-rs/blob/511160ffce8d27632d20770b7090b9f73dda26c6/src/lib.rs#L828. Thus, in addition to the paths from the cache variable, also paths from the environment variable should be added to the CMAKE_FIND_ROOT_PATH to make them discoverable during cross compilation.

@toivosnare toivosnare requested a review from a team as a code owner March 14, 2026 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant