Skip to content

Conversation

slipher
Copy link
Member

@slipher slipher commented Oct 10, 2025

No description provided.

These variables in the mingw cross toolchain files no longer mean
anything since the line that sets CMAKE_FIND_ROOT_PATH was removed
in 14a9eb7.
We were adding the external deps location to both CMAKE_FIND_ROOT_PATH
and CMAKE_PREFIX_PATH. Only one is needed. CMAKE_PREFIX_PATH has the
weird behavior that if CMAKE_FIND_ROOT_PATH and CMAKE_PREFIX_PATH are
both set, each (root path) X (prefix path) pair is considered, and
when one isn't a subpath of the other, the search directory that
results is formed by concatenating the root path and the prefix path.
The deps dir is always an absolute path and not something that we want
to be concatenated in the middle, so avoid using CMAKE_PREFIX_PATH.

This should make it possible to use CMAKE_FIND_ROOT_PATH in a toolchain
file  without getting issues from the concatenation behavior, if it turn
out to be truly necessary for some toolchain.
@slipher slipher marked this pull request as draft October 11, 2025 10:32
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