[CMake] How to invoke 64 bit cmd.exe from cmake script onWindows 7 (x64).
Alexander Tarnopolsky
Alexander.Tarnopolsky at PDGM.com
Mon Aug 23 06:58:51 EDT 2010
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.Tarnopolsky at PDGM.com
www.pdgm.com
-----Original Message-----
From: Tyler Roscoe [mailto:tyler at cryptio.net]
Sent: Sunday, August 22, 2010 10:50 PM
To: Alexander Tarnopolsky
Cc: cmake at 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
More information about the CMake
mailing list