ENABLE_HIDAPI option is not respected
envgap__cemu-project__Cemu-1602
01 / FAILURE SIGNATURE
As reported upstream
/tmp/guix-build-cemu-2.6.drv-0/source/src/input/api/Wiimote/hidapi/HidapiWiimote.h:4:10: fatal error: hidapi.h: No such file or directory
Not a benchmark task.
- In a clean container the reported failure did not reproduce, or the known fix did not make the project run.
02 / ENVIRONMENT RECIPE
- Base commit
4f4412b3341d4ac02377e5aa66eddbcfe2072c5c- Manifest
CMakeLists.txt- Reproduce
Awaiting issue-specific recipe- Run under trace
Awaiting a meaningful runtime command
03 / ORIGINAL ISSUE TEXT
cemu-project/Cemu #1602 · read the original issue
### Current Behavior
When setting ENABLE_HIDAPI=OFF in the CMake build, HidapiWiimote.cpp is still built and thus causes an error:
### Expected Behavior
There is no error related to HIDAPI not being found.
### Steps to Reproduce
build with -DENABLE_HIDAPI=OFF
### System Info (Optional)
OS: GNU Guix
### Emulation Settings (Optional)
_No response_
### Logs (Optional)
```
[ 29%] Building CXX object src/input/CMakeFiles/CemuInput.dir/api/Wiimote/hidapi/HidapiWiimote.cpp.o
cd /tmp/guix-build-cemu-2.6.drv-0/build/src/input && /gnu/store/86fc8bi3mciljxz7c79jx8zr4wsx7xw8-gcc-11.4.0/bin/c++ -DBOOST_PROGRAM_OPTIONS_DYN_LINK -DBOOST_PROGRAM_OPTIONS_NO_LIB -DEMULATOR_HASH="" -DEMULATOR_VERSION_MAJOR=0 -DEMULATOR_VERSION_MINOR=0 -DEMULATOR_VERSION_PATCH=0 -DENABLE_DISCORD_RPC -DENABLE_FERAL_GAMEMODE -DFMT_SHARED -DHAS_BLUEZ -DHAS_CUBEB=1 -DHAS_WAYLAND -DSUPPORTS_WIIMOTE -DVK_NO_PROTOTYPES -DVK_USE_PLATFORM_WAYLAND_KHR -DVK_USE_PLATFORM_XCB_KHR -DVK_USE_PLATFORM_XLIB_KHR -DWXUSINGDLL -D_FILE_OFFSET_BITS=64 -D__WXGTK__ -I/tmp/guix-build-cemu-2.6.drv-0/build/src/input -I/tmp/guix-build-cemu-2.6.drv-0/source/src/input -I/tmp/guix-build-cemu-2.6.drv-0/source/dependencies/Vulkan-Headers/include -I/tmp/guix-build-cemu-2.6.drv-0/source/src/input/.. -I/tmp/guix-build-cemu-2.6.drv-0/source/src/Cafe/.. -I/tmp/guix-build-cemu-2.6.drv-0/source/src/Common/.. -I/tmp/guix-build-cemu-2.6.drv-0/source/src/config/.. -I/tmp/guix-build-cemu-2.6.drv-0/source/src/gui/.. -I/tmp/guix-build-cemu-2.6.drv-0/source/src/util/.. -isystem /gnu/store/j3dfjwczv2z2crx3bsyb0fpddkmbrjdz-wxwidgets-3.2.8.1/lib/wx/include/gtk3-unicode-3.2 -isystem /gnu/store/j3dfjwczv2z2crx3bsyb0fpddkmbrjdz-wxwidgets-3.2.8.1/include/wx-3.2 -isystem /gnu/store/qj9jhgqn2b9g7yxdhyw6ki1vz241apkd-libpng-1.6.39/include/libpng16 -isystem /gnu/store/bb71vfyamnca2xvvby83dd6vw9qak71i-gtk+-3.24.43/include/gtk-3.0 -isystem /gnu/store/41wzli7i6msbfzllizrgrawgcxgym723-pango-1.54.0/include/pango-1.0 -isystem /gnu/store/bb6c2kxbbfpfpvjpglkl8sib310dbqji-libcloudproviders-minimal-0.3.6/include/cloudproviders -isystem /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/gio-unix-2.0 -isystem /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/include/glib-2.0 -isystem /gnu/store/5csw0jn2lfkzavkq1fjjl7s7bdgmzjjk-glib-2.82.1/lib/glib-2.0/include -isystem /gnu/store/7ah6i5829f5ha6bdfzcj1gf21115xyyd-freetype-2.13.0/include/freetype2 -isystem /gnu/store/qwi828c782jxp0lq90jzqypi0pk90wkn-fribidi-1.0.12/include/fribidi -isystem /gnu/store/gh9cgprk2x0zq7xw44dal0v8s3wixpj3-cairo-1.18.2/include/cairo -isystem /gnu/store/yr3lvif4c9x0qkvp15l7dyz97i24m857-at-spi2-core-2.52.0/include/at-spi2-atk/2.0 -isystem /gnu/store/yr3lvif4c9x0qkvp15l7dyz97i24m857-at-spi2-core-2.52.0/include/at-spi-2.0 -isystem /gnu/store/yr3lvif4c9x0qkvp15l7dyz97i24m857-at-spi2-core-2.52.0/include/atk-1.0 -isystem /gnu/store/sw0rl8sfz01j723s03yndrnk14xllfpd-libdrm-2.4.124/include/libdrm -isystem /gnu/store/4l66m7h6laqdfzcpdkb2j9a32pb1iidx-harfbuzz-8.3.0/include/harfbuzz -isystem /gnu/store/2p8j6npwa2k59d8lbhlqzvffn0437x8l-util-linux-2.37.4-lib/include/libmount -isystem /gnu/store/2p8j6npwa2k59d8lbhlqzvffn0437x8l-util-linux-2.37.4-lib/include/blkid -isystem /gnu/store/bzyx5ac3bm7ha5vynaw5k6r733a1h946-gdk-pixbuf-2.42.12/include/gdk-pixbuf-2.0 -isystem /gnu/store/zv420d7jscbcwkzndxb9n9dma4xhmf43-pixman-0.42.2/include/pixman-1 -isystem /gnu/store/bmiy28325s4qv93s6l3kjxdd9f283fy3-dbus-1.15.8/include/dbus-1.0 -isystem /gnu/store/bmiy28325s4qv93s6l3kjxdd9f283fy3-dbus-1.15.8/lib/dbus-1.0/include -isystem /gnu/store/6cr61zcvgy69igdizpj79g1rz4mxk6x3-sdl2-2.30.8/include/SDL2 -O2 -g -DNDEBUG -flto=auto -fno-fat-lto-objects -Wno-multichar -Wno-invalid-offsetof -Wno-switch -Wno-ignored-attributes -Wno-deprecated-enum-enum-conversion -pthread -std=gnu++20 -Winvalid-pch -include /tmp/guix-build-cemu-2.6.drv-0/build/src/input/CMakeFiles/CemuInput.dir/cmake_pch.hxx -MD -MT src/input/CMakeFiles/CemuInput.dir/api/Wiimote/hidapi/HidapiWiimote.cpp.o -MF CMakeFiles/CemuInput.dir/api/Wiimote/hidapi/HidapiWiimote.cpp.o.d -o CMakeFiles/CemuInput.dir/api/Wiimote/hidapi/HidapiWiimote.cpp.o -c /tmp/guix-build-cemu-2.6.drv-0/source/src/input/api/Wiimote/hidapi/HidapiWiimote.cpp
In file included from /tmp/guix-build-cemu-2.6.drv-0/source/src/input/api/Wiimote/hidapi/HidapiWiimote.cpp:1:
/tmp/guix-build-cemu-2.6.drv-0/source/src/input/api/Wiimote/hidapi/HidapiWiimote.h:4:10: fatal error: hidapi.h: No such file or directory
4 | #include <hidapi.h>
| ^~~~~~~~~~
compilation terminated.
```04 / LABELS
Labels from the report text only; not yet run
No supported category has been assigned.
Label rules and the text that matched
[]