On Friday 14 September 2007 20:08:13 Goswin von Brederlow wrote: > "wim van hoydonck" <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] GPG : http://dizzy.roedu.net/dizzy-gpg.txt WWW: http://dizzy.roedu.net "Linux is obsolete" -- AST _______________________________________________ CMake mailing list [email protected] http://www.cmake.org/mailman/listinfo/cmake
