Skip to content

Commit 99df358

Browse files
committed
debug
1 parent c9f0c1b commit 99df358

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

hidtest/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
1515
message("!!! hidapi_VERSION_EXACT: ${hidapi_VERSION_EXACT}")
1616
message("!!! hidapi_COMPONENTS: ${hidapi_COMPONENTS}")
1717
message("!!! hidapi_FIND_COMPONENTS: ${hidapi_FIND_COMPONENTS}")
18-
if(NOTE hidapi_FOUND)
18+
if(NOT hidapi_FOUND)
1919
return()
2020
endif()
2121
message(STATUS "Using HIDAPI: ${hidapi_VERSION}")

src/cmake/hidapi-config.cmake.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set(hidapi_VERSION_PATCH "@hidapi_VERSION_PATCH@")
66
set(hidapi_VERSION "@hidapi_VERSION@")
77
set(hidapi_VERSION_STR "@hidapi_VERSION@@VERSION_SUFFIX@")
88

9+
message("!! hidapi_VERSION: ${hidapi_VERSION}")
10+
911
set(hidapi_FOUND FALSE)
1012

1113
set(HIDAPI_NEED_EXPORT_THREADS @HIDAPI_NEED_EXPORT_THREADS@)
@@ -41,8 +43,12 @@ if(HIDAPI_NEED_EXPORT_ICONV)
4143
endif()
4244
endif()
4345

46+
message("!! Before Include")
47+
4448
include("${CMAKE_CURRENT_LIST_DIR}/libhidapi.cmake")
4549

50+
message("!! After Include")
51+
4652
set(hidapi_FOUND TRUE)
4753

4854
foreach(_component @EXPORT_COMPONENTS@)

0 commit comments

Comments
 (0)