aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2013-03-11 17:49:48 -0700
committerJosh Blum <josh@joshknows.com>2013-03-11 17:49:48 -0700
commitcec4a61bef8e992aab80ab92397825f26f8e349a (patch)
tree755d086e0f8f386ce0a1e27349008fa772c94db1
parentd39020b2364ef9fd17d51208fd94f025ed769e04 (diff)
downloaduhd-cec4a61bef8e992aab80ab92397825f26f8e349a.tar.gz
uhd-cec4a61bef8e992aab80ab92397825f26f8e349a.tar.bz2
uhd-cec4a61bef8e992aab80ab92397825f26f8e349a.zip
usb: added C enable for libusb check
-rw-r--r--host/cmake/Modules/FindUSB1.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/host/cmake/Modules/FindUSB1.cmake b/host/cmake/Modules/FindUSB1.cmake
index 33ac891bc..626d06cc1 100644
--- a/host/cmake/Modules/FindUSB1.cmake
+++ b/host/cmake/Modules/FindUSB1.cmake
@@ -32,6 +32,7 @@ FIND_LIBRARY(LIBUSB_LIBRARIES
PATHS /usr/local/lib /usr/lib /opt/local/lib
)
+enable_language(C) #needs C support for check below
include(CheckFunctionExists)
if(LIBUSB_INCLUDE_DIRS)
set(CMAKE_REQUIRED_INCLUDES ${LIBUSB_INCLUDE_DIRS})