jahnf / Projecteur

Linux Desktop Application for the Logitech Spotlight device (and similar devices) - Digital Laser Pointer
MIT License
379 stars 33 forks source link

Calculate version correctly when git not installed #94

Closed llimeht closed 4 years ago

llimeht commented 4 years ago

Prevent a failure to build when building without the git package being installed; cmake rules to describe the release leave VERSION_DISTANCE incorrectly unset which leaves the function returning void rather than int.

unsigned int version_distance() { return @VERSION_DISTANCE@; }

unsigned int version_distance() { return ;}

(I'm not convinced that this is the most elegant fix, but it is effective...!)