Skip to content

Commit 0b31a6e

Browse files
committed
debug
1 parent f58229c commit 0b31a6e

File tree

3 files changed

+3
-27
lines changed

3 files changed

+3
-27
lines changed

.github/workflows/builds.yml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -45,20 +45,6 @@ jobs:
4545
fail: true
4646
- name: Check CMake Export Package Shared
4747
run: |
48-
cmake --version
49-
ls -la install/shared-cmake/lib/cmake/hidapi/
50-
sed -i '1s/^/message("! PACKAGE_FIND_VERSION: ${PACKAGE_FIND_VERSION}")\n/' install/shared-cmake/lib/cmake/hidapi/hidapi-config-version.cmake
51-
sed -i '1s/^/message("! CVF_VERSION: ${CVF_VERSION}")\n/' install/shared-cmake/lib/cmake/hidapi/hidapi-config-version.cmake
52-
sed -i '1s/^/message("! CMAKE_SIZEOF_VOID_P: ${CMAKE_SIZEOF_VOID_P}")\n/' install/shared-cmake/lib/cmake/hidapi/hidapi-config-version.cmake
53-
54-
cat install/shared-cmake/lib/cmake/hidapi/hidapi-config.cmake
55-
echo "------------- --------------------- ----------------------- ----------------------"
56-
echo "------------- --------------------- ----------------------- ----------------------"
57-
echo "------------- --------------------- ----------------------- ----------------------"
58-
cat install/shared-cmake/lib/cmake/hidapi/hidapi-config-version.cmake
59-
echo "------------- --------------------- ----------------------- ----------------------"
60-
echo "------------- --------------------- ----------------------- ----------------------"
61-
echo "------------- --------------------- ----------------------- ----------------------"
6248
cmake \
6349
-B build/shared_test \
6450
-S hidapisrc/hidtest \
@@ -73,7 +59,7 @@ jobs:
7359
cmake \
7460
-B build/static_test \
7561
-S hidapisrc/hidtest \
76-
-Dhidapi_ROOT=install/static-cmake \
62+
-Dhidapi_ROOT=$(pwd)/install/static-cmake \
7763
-DCMAKE_INSTALL_PREFIX=install/static_test \
7864
"-DCMAKE_C_FLAGS=${GNU_COMPILE_FLAGS}"
7965
cd build/static_test

hidtest/CMakeLists.txt

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

12-
set(CMAKE_FIND_DEBUG_MODE ON)
13-
find_package(hidapi 0.12)
14-
unset(CMAKE_FIND_DEBUG_MODE)
15-
16-
message("!!! hidapi_VERSION: ${hidapi_VERSION}")
17-
message("!!! hidapi_VERSION_EXACT: ${hidapi_VERSION_EXACT}")
18-
message("!!! hidapi_COMPONENTS: ${hidapi_COMPONENTS}")
19-
message("!!! hidapi_FIND_COMPONENTS: ${hidapi_FIND_COMPONENTS}")
20-
if(NOT hidapi_FOUND)
21-
return()
22-
endif()
12+
find_package(hidapi 0.12 REQUIRED)
2313
message(STATUS "Using HIDAPI: ${hidapi_VERSION}")
2414
else()
2515
# hidtest is built as part of the main HIDAPI build

src/cmake/hidapi-config.cmake.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set(hidapi_VERSION "@hidapi_VERSION@")
99
set(PACKAGE_VERSION "${hidapi_VERSION}")
1010
set(hidapi_VERSION_STR "@hidapi_VERSION@@VERSION_SUFFIX@")
1111

12-
message(FATAL_ERROR "!! hidapi_VERSION: ${hidapi_VERSION}")
12+
message("!! hidapi_VERSION: ${hidapi_VERSION}")
1313

1414
set(hidapi_FOUND FALSE)
1515

0 commit comments

Comments
 (0)