[CMake] Hi and some newbie questions
Goswin von Brederlow
brederlo at informatik.uni-tuebingen.de
Fri Sep 14 19:40:36 EDT 2007
Dizzy <dizzy at roedu.net> writes:
> 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.
I know it does. Seen it often enough in the past.
Uname gives you the architecture of the cpu and when running a 64bit
kernel that is x86_64.
MfG
Goswin
More information about the CMake
mailing list