From ace9fb27b14ca0cdeb8f1b2960f82bf84539d0a5 Mon Sep 17 00:00:00 2001 From: Romuald Conty Date: Tue, 4 Oct 2011 21:41:15 +0000 Subject: [PATCH] Fix indent in cmake/modules/FindLIBUSB.cmake --- cmake/modules/FindLIBUSB.cmake | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/cmake/modules/FindLIBUSB.cmake b/cmake/modules/FindLIBUSB.cmake index 0449292..bcdbb69 100644 --- a/cmake/modules/FindLIBUSB.cmake +++ b/cmake/modules/FindLIBUSB.cmake @@ -25,23 +25,23 @@ IF(CMAKE_SYSTEM_NAME MATCHES FreeBSD) ENDIF(CMAKE_SYSTEM_NAME MATCHES FreeBSD) IF(NOT LIBUSB_FOUND) -IF(WIN32) - 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") - SET(LIBUSB_LIBRARY_DIR "$ENV{ProgramFiles}/LibUSB-Win32/bin/x86/") -ELSE(WIN32) - # If not under Windows we use PkgConfig - FIND_PACKAGE (PkgConfig) - IF(PKG_CONFIG_FOUND) - PKG_CHECK_MODULES(LIBUSB REQUIRED libusb) - ELSE(PKG_CONFIG_FOUND) - MESSAGE(FATAL_ERROR "Could not find PkgConfig") - ENDIF(PKG_CONFIG_FOUND) -ENDIF(WIN32) - -IF(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES) - SET(LIBUSB_FOUND TRUE) -ENDIF(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES) + IF(WIN32) + 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") + SET(LIBUSB_LIBRARY_DIR "$ENV{ProgramFiles}/LibUSB-Win32/bin/x86/") + ELSE(WIN32) + # If not under Windows we use PkgConfig + FIND_PACKAGE (PkgConfig) + IF(PKG_CONFIG_FOUND) + PKG_CHECK_MODULES(LIBUSB REQUIRED libusb) + ELSE(PKG_CONFIG_FOUND) + MESSAGE(FATAL_ERROR "Could not find PkgConfig") + ENDIF(PKG_CONFIG_FOUND) + ENDIF(WIN32) + + IF(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES) + SET(LIBUSB_FOUND TRUE) + ENDIF(LIBUSB_INCLUDE_DIRS AND LIBUSB_LIBRARIES) ENDIF(NOT LIBUSB_FOUND) IF(LIBUSB_FOUND)