We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5b957bb commit 1300980Copy full SHA for 1300980
docs/zh/api/description/package-dependencies.md
@@ -750,7 +750,7 @@ target("test")
750
751
但如果用户通过 `apt install libusb-1.0` 安装了 libusb 库到系统,那么按理 xmake 应该会自动优先查找用户安装到系统环境的 libusb 包,直接使用,避免额外的下载编译安装。
752
753
-但是问题来了,xmake 内部通过 `find_package("libusb")` 并没有找打它,这是为什么呢?因为通过 apt 安装的 libusb 包名是 `libusb-1.0`, 而不是 libusb。
+但是问题来了,xmake 内部通过 `find_package("libusb")` 并没有找到它,这是为什么呢?因为通过 apt 安装的 libusb 包名是 `libusb-1.0`, 而不是 libusb。
754
755
我们只能通过 `pkg-config --cflags libusb-1.0` 才能找到它,但是 xmake 内部的默认 find_package 逻辑并不知道 `libusb-1.0` 的存在,所以找不到。
756
0 commit comments