[CMake] Detecting linux distro?

Hendrik Sattler post at hendrik-sattler.de
Mon Mar 3 15:31:23 EST 2008


Am Montag 03 März 2008 schrieb Stephen Quinney:
> I'm sure I'm not the first person to need to do this but I can't see
> an obvious solution. I want to be able to detect which Linux system
> the package is building on, i.e. is it Fedora, Debian, Gentoo, etc?
> And also beyond that, what version of the distro is it? (e.g. FC6. F9,
> Debian 4.0) Can someone point me in the right direction?

You may be successfull with detecting the Distribution vendor (Debian, Fedora, 
etc.) but the version is mostly _not_ reliable.

HS



More information about the CMake mailing list