Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake: fix issue with library path during cross-compile #10383

Merged
merged 2 commits into from
Nov 18, 2024

Conversation

bandoti
Copy link
Contributor

@bandoti bandoti commented Nov 18, 2024

When a toolchain file is supplied for cross-compilation it changes the paths used for finding libraries. This fix ensures that when find_package(Llama ...) is run the provided ggml/llama libraries will be located. Otherwise it will assume that ggml/llama are along with the prefixed system libraries.

@github-actions github-actions bot added the build Compilation issues label Nov 18, 2024
@slaren slaren merged commit 531cb1c into ggerganov:master Nov 18, 2024
7 checks passed
@bandoti bandoti deleted the fix-cmake-pkg-cross-compile branch November 18, 2024 15:36
arthw pushed a commit to arthw/llama.cpp that referenced this pull request Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Compilation issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants