Re: [CMake] how to compile as 64bit on win

2013-03-06 Thread Rolf Eike Beer
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{}
> 
> 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
-- 


signature.asc
Description: This is a digitally signed message part.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] how to compile as 64bit on win

2013-03-06 Thread Martin Koller
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=add8d22acc9417cb144a0b497f4f5ef330bfc680
> 
> 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{}

But probably it's just not documented.

However, I locally modified the if to
if (DEFINED ENV{PROCESSOR_ARCHITEW6432})
and now it works.

-- 
Best regards/Schöne Grüße

Martin

A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

This mail was not scanned before sending.
It was sent from a secure Linux desktop.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake


[CMake] how to compile as 64bit on win

2013-03-06 Thread Martin Koller
I'm using a current developers snapshot of cmake to include the fix of
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=add8d22acc9417cb144a0b497f4f5ef330bfc680

However, a simple cmake file

project(test)
message(${CMAKE_SYSTEM_PROCESSOR})

always gives me "x86".

This is on a win8 machine and cmake run inside a shell with the title
"Visual Studio x64 Win64 Command Prompt (2010)"

Calling "cl" in this shell gives "... for x64" and checking the PATH env var
also shows that the first path is "...Visual Studio 10.0\VC\BIN\amd64;..."

So ... what am I doing wrong ?

In cmake 2.8.10.2 I could use -G "Visual Studio 10 Win64" which is no longer an
option with the current cmake snapshot. With what exactly was it replaced ?
(I found the new option -T but without any useful documentation)

Also, how would I run cmake and creating a jom based builddir for 64bit ?
There was never an option "jom 64" or something ...

-- 
Best regards/Schöne Grüße

Martin

A: Because it breaks the logical sequence of discussion
Q: Why is top posting bad?

()  ascii ribbon campaign - against html e-mail 
/\  www.asciiribbon.org   - against proprietary attachments

This mail was not scanned before sending.
It was sent from a secure Linux desktop.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake