[CMake] how to compile as 64bit on win

Rolf Eike Beer eike at sf-mail.de
Wed Mar 6 12:06:49 EST 2013


Martin Koller wrote:
> On Wednesday 06 March 2013 09:57:09 Koller, Martin wrote:
> > I'm using a current developers snapshot of cmake to include the fix of
> > http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=add8d22acc9417cb144a0b4
> > 97f4f5ef330bfc680
> > 
> > However, a simple cmake file
> > 
> > project(test)
> > message(${CMAKE_SYSTEM_PROCESSOR})
> > 
> > always gives me "x86".
> 
> I think the obove commit is wrong.
> The check seems wrong:
> if (ENV{PROCESSOR_ARCHITEW6432})
> 
> I see no documentation where I could use this ENV{...} syntax.
> I only find $ENV{xxxx}
> 
> But probably it's just not documented.
> 
> However, I locally modified the if to
> if (DEFINED ENV{PROCESSOR_ARCHITEW6432})
> and now it works.

Thanks for testing. Fix pushed to next branch:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=20681c9e0573fcc7f1a9870c54a4edd5fde14568

Eike
-- 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130306/15b92b84/attachment.pgp>


More information about the CMake mailing list