File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 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 \
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 \
Original file line number Diff line number Diff 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} " )
1422else ()
1523 # hidtest is built as part of the main HIDAPI build
You can’t perform that action at this time.
0 commit comments