https://bugs.kde.org/show_bug.cgi?id=402902
Bug ID: 402902 Summary: libxkbfile specified as optional, but CMake still fails if it is not present Product: ktouch Version: unspecified Platform: Other OS: Linux Status: REPORTED Severity: minor Priority: NOR Component: general Assignee: sebastian.gottfr...@posteo.de Reporter: spiolli...@googlemail.com Target Milestone: --- While packaging ktouch for NixOS, I found out that libxkbfile doesn't seem to be as optional as described: Although the README [1] specifies libxkbfile as optional, when libxkbfile is not provided to the build environment cmake fails: ``` builder for '/nix/store/ljm4ikyz4c785jf9qxk4q2lpbdqvarmh-ktouch-18.12.0.drv' failed with exit code 1; last 10 log lines: used as include directory in directory /build/ktouch-18.12.0/src used as include directory in directory /build/ktouch-18.12.0/src used as include directory in directory /build/ktouch-18.12.0/src used as include directory in directory /build/ktouch-18.12.0/src used as include directory in directory /build/ktouch-18.12.0/src X11_Xkbfile_LIB (ADVANCED) linked by target "ktouch" in directory /build/ktouch-18.12.0/src -- Configuring incomplete, errors occurred! ``` I could narrow it down to the call `find_package(X11)` [2], which invokes the CMake module `FindX11` and thus also searches for libxkbfile, failing if it is not found. Thus it'd be interesting whether the `find_package(X11)` could be marked optional. Otherwise the README needs some adjustments. [1] https://cgit.kde.org/ktouch.git/tree/README.md [2] https://cgit.kde.org/ktouch.git/tree/src/CMakeLists.txt#n7 -- You are receiving this mail because: You are watching all bug changes.