Fix indent in cmake/modules/FindLIBUSB.cmake
This commit is contained in:
parent
dccfd65c80
commit
ace9fb27b1
1 changed files with 17 additions and 17 deletions
|
@ -25,23 +25,23 @@ IF(CMAKE_SYSTEM_NAME MATCHES FreeBSD)
|
||||||
ENDIF(CMAKE_SYSTEM_NAME MATCHES FreeBSD)
|
ENDIF(CMAKE_SYSTEM_NAME MATCHES FreeBSD)
|
||||||
|
|
||||||
IF(NOT LIBUSB_FOUND)
|
IF(NOT LIBUSB_FOUND)
|
||||||
IF(WIN32)
|
IF(WIN32)
|
||||||
FIND_PATH(LIBUSB_INCLUDE_DIRS lusb0_usb.h "$ENV{ProgramFiles}/LibUSB-Win32/include" NO_SYSTEM_ENVIRONMENT_PATH)
|
FIND_PATH(LIBUSB_INCLUDE_DIRS lusb0_usb.h "$ENV{ProgramFiles}/LibUSB-Win32/include" NO_SYSTEM_ENVIRONMENT_PATH)
|
||||||
FIND_LIBRARY(LIBUSB_LIBRARIES NAMES libusb PATHS "$ENV{ProgramFiles}/LibUSB-Win32/lib/gcc")
|
FIND_LIBRARY(LIBUSB_LIBRARIES NAMES libusb PATHS "$ENV{ProgramFiles}/LibUSB-Win32/lib/gcc")
|
||||||
SET(LIBUSB_LIBRARY_DIR "$ENV{ProgramFiles}/LibUSB-Win32/bin/x86/")
|
SET(LIBUSB_LIBRARY_DIR "$ENV{ProgramFiles}/LibUSB-Win32/bin/x86/")
|
||||||
ELSE(WIN32)
|
ELSE(WIN32)
|
||||||
# If not under Windows we use PkgConfig
|
# If not under Windows we use PkgConfig
|
||||||
FIND_PACKAGE (PkgConfig)
|
FIND_PACKAGE (PkgConfig)
|
||||||
IF(PKG_CONFIG_FOUND)
|
IF(PKG_CONFIG_FOUND)
|
||||||
PKG_CHECK_MODULES(LIBUSB REQUIRED libusb)
|
PKG_CHECK_MODULES(LIBUSB REQUIRED libusb)
|
||||||
ELSE(PKG_CONFIG_FOUND)
|
ELSE(PKG_CONFIG_FOUND)
|
||||||
MESSAGE(FATAL_ERROR "Could not find PkgConfig")
|
MESSAGE(FATAL_ERROR "Could not find PkgConfig")
|
||||||
ENDIF(PKG_CONFIG_FOUND)
|
ENDIF(PKG_CONFIG_FOUND)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
IF(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES)
|
IF(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES)
|
||||||
SET(LIBUSB_FOUND TRUE)
|
SET(LIBUSB_FOUND TRUE)
|
||||||
ENDIF(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES)
|
ENDIF(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES)
|
||||||
ENDIF(NOT LIBUSB_FOUND)
|
ENDIF(NOT LIBUSB_FOUND)
|
||||||
|
|
||||||
IF(LIBUSB_FOUND)
|
IF(LIBUSB_FOUND)
|
||||||
|
|
Loading…
Reference in a new issue