File tree Expand file tree Collapse file tree 3 files changed +3
-27
lines changed
Expand file tree Collapse file tree 3 files changed +3
-27
lines changed Original file line number Diff line number Diff line change 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 \
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
Original file line number Diff line number Diff 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} " )
2414else ()
2515 # hidtest is built as part of the main HIDAPI build
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ set(hidapi_VERSION "@hidapi_VERSION@")
99set (PACKAGE_VERSION "${hidapi_VERSION} " )
1010set (hidapi_VERSION_STR "@hidapi_VERSION@@VERSION_SUFFIX@" )
1111
12- message (FATAL_ERROR "!! hidapi_VERSION: ${hidapi_VERSION} " )
12+ message ("!! hidapi_VERSION: ${hidapi_VERSION} " )
1313
1414set (hidapi_FOUND FALSE )
1515
You can’t perform that action at this time.
0 commit comments