Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmake improvements for distros #181

Merged
merged 2 commits into from
Nov 1, 2021

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.

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.

None yet

2 participants