Skip to content

Conversation

@iv-m
Copy link
Contributor

@iv-m iv-m commented Oct 25, 2021

I'm maintaining HeadsetControl package for the distribution I use (ALT Sisyphus). While working on update to 2.5, I found that a couple of minor changes to CMakeLists.txt would make my job as a maintainer easier.

First, as most of (binary) distros do, we are building our package in a controlled environment that does not have a C++ compiler by default. Specifying that HeadsetControl is C-only project avoids the necessity to install it there.

Second, we're installing udev rules to /lib/udev/rules.d, which is not a symlink to /usr/lib/udev/rules.d or anything like that. So I added an option to specify where CMake should put the udev rules file.

iv-m added 2 commits October 25, 2021 12:57
The CMake default is to enable both C and CXX,
which leads to build failure if C++ compiler
is not present in the build environment.

Explicitly stating that we don't need C++
allows distributions that build their packages
in controlled environment to get rid of extra
g++ build dependency.
Different distributions have different standards about it,
so let's add an option for that.
@Sapd Sapd merged commit ae86ce2 into Sapd:master Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants