The branch, master has been updated
via 300a9ed7f4d18fa710f748fd6f6fad35e72e2740 (commit)
from ca7d32448041e33bdb206241f210ad8961f8d10c (commit)
- Log -----------------------------------------------------------------
commit 300a9ed7f4d18fa710f748fd6f6fad35e72e2740
Author: Paul Fertser <fercerpav@xxxxxxxxx>
Date: Wed Aug 7 14:35:47 2013 +0400
cmake: allow to use pkg-config for windows builds as well
If the user has an appropriate pkg-config wrapper,
e.g. i686-w64-mingw32-pkg-config (or building natively on mingw and
has pkg-config or pkg-config-lite installed), it can be used to locate
libusb-1.0 properly. For cross-compiling
-DPKG_CONFIG_EXECUTABLE=`which i686-w64-mingw32-pkg-config`
needs to be explicitly set.
It still doesn't prevent pkg-config-less operation, i.e. the user can
specify something like
-DLIBUSB_INCLUDE_DIR=~/i686-w64-mingw32-root/usr/include/libusb-1.0
and the build will succeed even when no pkg-config executable is
present.
Signed-off-by: Paul Fertser <fercerpav@xxxxxxxxx>
-----------------------------------------------------------------------
Summary of changes:
cmake/FindUSB1.cmake | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/cmake/FindUSB1.cmake b/cmake/FindUSB1.cmake
index ebcac99..8cb9229 100644
--- a/cmake/FindUSB1.cmake
+++ b/cmake/FindUSB1.cmake
@@ -17,12 +17,10 @@ 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)
+ # 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)
FIND_PATH(LIBUSB_INCLUDE_DIR libusb.h
PATHS ${PC_LIBUSB_INCLUDEDIR} ${PC_LIBUSB_INCLUDE_DIRS})
hooks/post-receive
--
A library to talk to FTDI chips
--
libftdi-git - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi-git+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx
|