Skip to content

Commit c9f0c1b

Browse files
committed
debug
1 parent ffd824e commit c9f0c1b

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.github/workflows/builds.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ jobs:
6262
fail: true
6363
- name: Check CMake Export Package Shared
6464
run: |
65-
cat install/shared-cmake/lib/cmake/hidapi/*
66-
cmake --debug-find \
65+
cat install/shared-cmake/lib/cmake/hidapi/hidapi-config.cmake
66+
cmake \
6767
-B build/shared_test \
6868
-S hidapisrc/hidtest \
6969
-Dhidapi_ROOT=install/shared-cmake \
@@ -73,8 +73,8 @@ jobs:
7373
make install
7474
- name: Check CMake Export Package Static
7575
run: |
76-
cat install/static-cmake/lib/cmake/hidapi/*
77-
cmake --debug-find \
76+
cat install/static-cmake/lib/cmake/hidapi/hidapi-config.cmake
77+
cmake \
7878
-B build/static_test \
7979
-S hidapisrc/hidtest \
8080
-Dhidapi_ROOT=install/static-cmake \

hidtest/CMakeLists.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR)
99
cmake_policy(SET CMP0074 NEW)
1010
endif()
1111

12-
find_package(hidapi 0.12 REQUIRED)
12+
find_package(hidapi 0.12)
13+
14+
message("!!! hidapi_VERSION: ${hidapi_VERSION}")
15+
message("!!! hidapi_VERSION_EXACT: ${hidapi_VERSION_EXACT}")
16+
message("!!! hidapi_COMPONENTS: ${hidapi_COMPONENTS}")
17+
message("!!! hidapi_FIND_COMPONENTS: ${hidapi_FIND_COMPONENTS}")
18+
if(NOTE hidapi_FOUND)
19+
return()
20+
endif()
1321
message(STATUS "Using HIDAPI: ${hidapi_VERSION}")
1422
else()
1523
# hidtest is built as part of the main HIDAPI build

0 commit comments

Comments
 (0)