I do something like this in a batch file to guarantee running 32-bit from a 64-bit command prompt:<div><br><div><p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">@rem  Workaround allows msys/cygwin rxvt to run on Windows x64</p>

<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">@rem    (SysWOW64\cmd.exe runs as 32-bit)</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">@rem</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">@if &quot;%PROCESSOR_ARCHITECTURE%&quot; equ &quot;AMD64&quot; (</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">  @&quot;%WINDIR%\SysWOW64\cmd.exe&quot; /c &quot;&quot;%~f0&quot; %*&quot;</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">  @exit /b 0</p>
<p style="margin: 0.0px 0.0px 0.0px 0.0px; font: 14.0px Menlo">)</p><div><br></div>What you&#39;re asking for is the inverse: running a 64-bit program from a 32-bit program. I&#39;m not sure what the right file reference to use is to do this, but I&#39;m sure you can do it..... If nobody else replies again to this thread sooner, I&#39;ll try to figure out the right invocation and pass it along.</div>
<div><br></div><div>Good luck,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Sun, Aug 22, 2010 at 2:36 PM, Alexander Tarnopolsky <span dir="ltr">&lt;<a href="mailto:Alexander.Tarnopolsky@pdgm.com">Alexander.Tarnopolsky@pdgm.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
Hi,<br>
<br>
I&#39;m trying to invoke an interactive shell from a cmake script using the<br>
following:<br>
<br>
execute_process (COMMAND ${SHELL} ${ARGS})<br>
<br>
And the 32bit cmd.exe is invoked on &quot;Windows 7 x64&quot; (since the cmake<br>
itself runs in 32bit environment).<br>
But I&#39;m interested in 64bit cmd.exe.<br>
Is there a way to invoke it from cmake?<br>
<br>
Thanks in advance for your comments.<br>
<br>
Regards,<br>
Alexander Tarnopolsky<br>
Build Manager, Epos<br>
<br>
Alexander.Tarnopolsky@PDGM.com<br>
<a href="http://www.pdgm.com" target="_blank">www.pdgm.com</a><br>
<br>
-----Original Message-----<br>
From: <a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a> [mailto:<a href="mailto:cmake-bounces@cmake.org">cmake-bounces@cmake.org</a>] On Behalf<br>
Of Arnaud GELAS<br>
Sent: Friday, August 20, 2010 7:19 PM<br>
To: <a href="mailto:cmake@cmake.org">cmake@cmake.org</a><br>
Subject: [CMake] TRY_COMPILE and -Werror<br>
<br>
<br>
  Hi all,<br>
<br>
I would like to check if one piece of code generates a warning or not<br>
(about a deprecated method). I want to use TRY_COMPILE and adds -Werror<br>
to gcc flags.<br>
<br>
I have tried the following:<br>
<br>
TRY_COMPILE(VTK_FFMPEG_GUESSFORMAT<br>
          ${VTK_BINARY_DIR}/CMakeTmp<br>
          ${VTK_CMAKE_DIR}/vtkFFMPEGTestGuessFormat.cxx<br>
          CMAKE_FLAGS<br>
&quot;-DINCLUDE_DIRECTORIES:STRING=${FFMPEG_INCLUDE_DIR}&quot;<br>
            -DCOMPILE_DEFINITIONS:STRING=-D${VTK_FFMPEG_CDEFS}<br>
            -DCOMPILE_DEFINITIONS:STRING=-D__STDC_CONSTANT_MACROS<br>
           &quot;-DLINK_LIBRARIES:STRING=${FFMPEG_avformat_LIBRARY}&quot;<br>
           &quot;-DCMAKE_CXX_FLAGS:STRING=-Werror&quot;<br>
          OUTPUT_VARIABLE OUTPUT)<br>
<br>
But VTK_FFMPEG_GUESSFORMAT is still true...<br>
<br>
Any idea?<br>
<br>
Thanks,<br>
Arnaud<br>
<div><div></div><div class="h5">_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at:<br>
<a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br></div></div>