[CMake] Detecting linux distro?

Steven Van Ingelgem steven at vaningelgem.be
Mon Mar 3 12:16:07 EST 2008


check "uname -a" and "cat /etc/issue.net"... Worked for me :)

On 03/03/2008, Stephen Quinney <squinney at inf.ed.ac.uk> wrote:
> 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?
>
>  Thanks,
>
>  Stephen Quinney
>
>
>  _______________________________________________
>  CMake mailing list
>  CMake at cmake.org
>  http://www.cmake.org/mailman/listinfo/cmake
>


More information about the CMake mailing list