summaryrefslogtreecommitdiffstats
path: root/host/Modules/FindUSB1.cmake
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-04-07 12:01:10 -0500
committerJosh Blum <josh@joshknows.com>2011-04-07 12:01:10 -0500
commitf0a2601d456ba4b5a75a7f0c9d21d2ab517dacec (patch)
treec6b0aa9c7a29a0dd39545bd5832b3b39eabaf9fe /host/Modules/FindUSB1.cmake
parente2cd276da0b23f59ba028b2f57443c27f921fa00 (diff)
parent74fc8946688d53ccd5d067d3f86e26b990af1bd4 (diff)
downloaduhd-f0a2601d456ba4b5a75a7f0c9d21d2ab517dacec.tar.gz
uhd-f0a2601d456ba4b5a75a7f0c9d21d2ab517dacec.tar.bz2
uhd-f0a2601d456ba4b5a75a7f0c9d21d2ab517dacec.zip
Merge branch 'mingw_cygwin'
Diffstat (limited to 'host/Modules/FindUSB1.cmake')
-rw-r--r--host/Modules/FindUSB1.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/host/Modules/FindUSB1.cmake b/host/Modules/FindUSB1.cmake
index ebcac99eb..efb2e288b 100644
--- a/host/Modules/FindUSB1.cmake
+++ b/host/Modules/FindUSB1.cmake
@@ -17,12 +17,12 @@ if (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
set(LIBUSB_FOUND TRUE)
else (LIBUSB_INCLUDE_DIR AND LIBUSB_LIBRARIES)
- IF (NOT WIN32)
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
find_package(PkgConfig)
- pkg_check_modules(PC_LIBUSB libusb-1.0)
- ENDIF(NOT WIN32)
+ IF(PKG_CONFIG_FOUND)
+ pkg_check_modules(PC_LIBUSB libusb-1.0)
+ ENDIF(PKG_CONFIG_FOUND)
FIND_PATH(LIBUSB_INCLUDE_DIR libusb.h
PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})