From: Antonio Ospite Date: Tue, 21 Feb 2012 13:48:06 +0000 (+0100) Subject: cmake: fix libusb search X-Git-Tag: v0.1.0~1^2~37 X-Git-Url: https://git.ao2.it/libam7xxx.git/commitdiff_plain/ff1b548c9ae29b22e42c232710eebf20440dbed8?ds=inline;hp=ff1b548c9ae29b22e42c232710eebf20440dbed8 cmake: fix libusb search Adjust cmake test for libusb library so that the compatible libusb for freebsd can be found. Since freebsd's libusb header are located in a different place from libusb-1.0, the includes in the source code must be adjusted using #include . Actually those new include statements are those that libusb-1.0 really expects to be used (see libusb-1.0.pc cflags to verify this). Taken from libfreenect commit 8219750df3a13501626a7f7f54d24afb8e64ec3f https://github.com/OpenKinect/libfreenect/commit/8219750df3a13501626a7f7f54d24afb8e64ec3f ---