-
-
Notifications
You must be signed in to change notification settings - Fork 784
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
Error-prone xmake behaviour when locating system packages #5467
Labels
Comments
you can open a pr to add e.g. and you can refer other packages in xmake-repo |
It work for me= = add_requires("glfw", {system = true})
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Xmake Version
2.9.4
Operating System Version and Architecture
Windows 11 21H2 Home. Using msys2, on clang64 environment
Describe Bug
A package holds multiple alias-es, like X, Y and Z. You can find the package using all the alias-es, but the target file to be linked to is named after one of them, for example, Y. When xmake successfully finds the system package and goes on to test if the compiler could actually link against the library, it tests only by adding the compiler flag "-lX", in which X is the package name we specify in our xmake.lua, instead of the real name we should use, Y.
Expected Behavior
Whichever package name we specify in xmake.lua, xmake could use the right name for the target file while testing if the library links.
Project Configuration
Additional Information and Error Logs
using
add_requires("glfw3")
using
add_requires("glfw")
As you see, it fails to locate the system package.
The text was updated successfully, but these errors were encountered: