[CMake] How to invoke 64 bit cmd.exe from cmake script on Windows 7 (x64).

Rolf Eike Beer eike at sf-mail.de
Sun Aug 22 16:38:12 EDT 2010


Am Sunday 22 August 2010 schrieb David Cole:
> I do something like this in a batch file to guarantee running 32-bit from a
> 64-bit command prompt:
> 
> @rem  Workaround allows msys/cygwin rxvt to run on Windows x64
> 
> @rem    (SysWOW64\cmd.exe runs as 32-bit)
> 
> @rem
> 
> @if "%PROCESSOR_ARCHITECTURE%" equ "AMD64" (
> 
>   @"%WINDIR%\SysWOW64\cmd.exe" /c ""%~f0" %*"
> 
>   @exit /b 0
> 
> )

You know about "@echo off"? That saves the @ before every line.

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/20100822/3bb7a042/attachment.pgp>


More information about the CMake mailing list