[CMake] Hi and some newbie questions
Dizzy
dizzy at roedu.net
Fri Sep 14 13:27:59 EDT 2007
On Friday 14 September 2007 20:08:13 Goswin von Brederlow wrote:
> "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.
So you could check it returns one of "i386", "i486", etc whatever you know
makes the x86 platform (and no I don't believe it returns "x86-64" on a
IA32). When finding a match you know it's x86.
--
Mihai RUSU Email: dizzy at roedu.net
GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net
"Linux is obsolete" -- AST
More information about the CMake
mailing list