Skip to content

Commit 63f18cc

Browse files
committed
Removed _DIR from the path variable to be consistent with other libraries.
1 parent 8ba8e22 commit 63f18cc

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

examples/protonect/cmake_modules/FindLibUsb.cmake

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# http://libusb-win32.sf.net
55
#
66
# It will use PkgConfig if present and supported, else search
7-
# it on its own. If the LibUSB_ROOT_DIR environment variable
7+
# it on its own. If the LibUSB_ROOT environment variable
88
# is defined, it will be used as base path.
99
# The following standard variables get defined:
1010
# LibUSB_FOUND: true if LibUSB was found
@@ -19,7 +19,7 @@ find_path ( LibUSB_INCLUDE_DIR
1919
libusb.h
2020
PATHS
2121
$ENV{ProgramFiles}/LibUSB-Win32
22-
$ENV{LibUSB_ROOT_DIR}
22+
$ENV{LibUSB_ROOT}
2323
PATH_SUFFIXES
2424
libusb
2525
)
@@ -45,7 +45,7 @@ find_library ( LibUSB_LIBRARY_RELEASE
4545
libusb libusb-1.0 usb
4646
PATHS
4747
$ENV{ProgramFiles}/LibUSB-Win32
48-
$ENV{LibUSB_ROOT_DIR}
48+
$ENV{LibUSB_ROOT}
4949
PATH_SUFFIXES
5050
${LibUSB_LIBRARY_PATH_SUFFIX_RELEASE}
5151
)
@@ -55,7 +55,7 @@ find_library ( LibUSB_LIBRARY_DEBUG
5555
libusb libusb-1.0 libusb-1.0d usb
5656
PATHS
5757
$ENV{ProgramFiles}/LibUSB-Win32
58-
$ENV{LibUSB_ROOT_DIR}
58+
$ENV{LibUSB_ROOT}
5959
PATH_SUFFIXES
6060
${LibUSB_LIBRARY_PATH_SUFFIX_DEBUG}
6161
)
@@ -80,7 +80,7 @@ endif ( LibUSB_FOUND )
8080

8181
if ( NOT LibUSB_FOUND )
8282
if ( NOT LibUSB_FIND_QUIETLY )
83-
message ( STATUS "LibUSB not found, try setting LibUSB_ROOT_DIR environment variable." )
83+
message ( STATUS "LibUSB not found, try setting LibUSB_ROOT environment variable." )
8484
endif ( NOT LibUSB_FIND_QUIETLY )
8585
if ( LibUSB_FIND_REQUIRED )
8686
message ( FATAL_ERROR "LibUSB could not be found." )

0 commit comments

Comments
 (0)