Thanks for prompt reply.

In a simple case I invoke just interactive shell using full path to
64bit cmd.exe :

file (TO_NATIVE_PATH "$ENV{COMSPEC}" SHELL)
SET (ARGS /k)
execute_process (COMMAND ${SHELL} ${ARGS})

Still I see that the cmd process running as 32bit (in TaskManager).

Alexander Tarnopolsky 
Build Manager, Epos
 
alexander.tarnopol...@pdgm.com
www.pdgm.com


-----Original Message-----
From: Tyler Roscoe [mailto:ty...@cryptio.net] 
Sent: Sunday, August 22, 2010 10:50 PM
To: Alexander Tarnopolsky
Cc: cmake@cmake.org
Subject: Re: [CMake] How to invoke 64 bit cmd.exe from cmake script
onWindows 7 (x64).

On Sun, Aug 22, 2010 at 07:36:21PM +0100, Alexander Tarnopolsky wrote:
> I'm trying to invoke an interactive shell from a cmake script using
the
> following: 
> 
> execute_process (COMMAND ${SHELL} ${ARGS})
> 
> And the 32bit cmd.exe is invoked on "Windows 7 x64" (since the cmake
> itself runs in 32bit environment). 
> But I'm interested in 64bit cmd.exe.
> Is there a way to invoke it from cmake?

Where is ${SHELL} defined? What is its value?

I suspect you could use find_program() with appropriate arguments to
specify that you want the 64-bit cmd.exe.

tyler
_______________________________________________
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

Reply via email to