[CMake] Hi and some newbie questions

Goswin von Brederlow brederlo at informatik.uni-tuebingen.de
Fri Sep 14 13:08:13 EDT 2007


"wim van hoydonck" <wim.van.hoydonck at gmail.com> writes:

> On a Unix-like OS, you can execute "uname -m" to get the machine
> architecture (but this is probably not really portable to M$...):

Not even portable across systems of the same architecture nor
accurate. On IA32 (x86) you want to compile for i486 but uname will
say anything from i486 to i686 and even x86_64 given a 64bit kernel.

On the other hand using "dpkg-architecture" is way to debian specific.

Something inbetween is to ask the gcc. But then you are gcc
specific (Good enough for me).

MfG
        Goswin


More information about the CMake mailing list