Skip to content

Commit f06e2c6

Browse files
committed
temp
1 parent 9e27f8a commit f06e2c6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

depends/common/libusb/CMakeLists.txt

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ project(libusb)
33

44
include(ExternalProject)
55

6+
list(APPEND libusb_conf CPPFLAGS=-I${CMAKE_INSTALL_PREFIX}/include)
7+
list(APPEND libusb_conf CFLAGS=-I${CMAKE_INSTALL_PREFIX}/include)
8+
list(APPEND libusb_conf LDFLAGS=-L${CMAKE_INSTALL_PREFIX}/lib)
9+
610
ExternalProject_Add(
711
libusb
812
SOURCE_DIR ${CMAKE_SOURCE_DIR}
@@ -13,6 +17,7 @@ ExternalProject_Add(
1317
--disable-examples-build
1418
--disable-tests-build
1519
--with-pic
20+
${libusb_conf}
1621
INSTALL_COMMAND ""
1722
BUILD_IN_SOURCE 1
1823
)

0 commit comments

Comments
 (0)