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 fails on Non-Debian Linux #212

Closed
Ray-Airdog opened this issue Nov 24, 2017 · 0 comments
Closed

CMake fails on Non-Debian Linux #212

Ray-Airdog opened this issue Nov 24, 2017 · 0 comments

Comments

@Ray-Airdog
Copy link

COMMAND cat /etc/lsb-release

DJIConfig.cmake fails if /etc/lsb-release doesn't exist and that is basically the case for any non-Debian Linux, e.g. Fedora, RHEL etc. Later on the /etc/lsb-release output is compared to Ubuntu versions, in other words, it makes no sence for any other, even Debian, Linux distribution.

The weirdest thing is that DISTRO_VERSION -- variable that is set base on lsb-release -- is not used anywhere at all!

The solution is to check the return code of cat /etc/lsb-release command and immediately set DISTRO_VERSION to UNKNOWN if non-zero result has been returned. Or just delete/comment the code, since it is not in use.

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

No branches or pull requests

1 participant