[CMake] Cross-compilation related question

David Cole david.cole at kitware.com
Tue Aug 25 13:16:39 EDT 2009


If you are using "NMake Makefiles" as the CMake generator, just be sure to
launch cmake (or cmake-gui) from the "Visual Studio x64 Cross Tools Command
Prompt".... That should build x64 code for you without any special
adjustments out of the box.
HTH,
David


On Tue, Aug 25, 2009 at 12:56 PM, Xiangyun Kong <xykong at yahoo.com> wrote:

> Thanks. After I use the new generator, it always looks for the 32 bit
>  cl.exe  at vc_root/VC/bin,
> and complain that the cl.exe does not work, even though I set the
> PATH as vc_root/VC/bin/x86_amd64.
>
> I used to use NMake Makefile, which does not complain about that.
>
> Xiangyun
>
> --- On Tue, 8/25/09, Tyler Roscoe <tyler at cryptio.net> wrote:
>
> > From: Tyler Roscoe <tyler at cryptio.net>
> > Subject: Re: [CMake] Cross-compilation related question
> > To: "Xiangyun Kong" <xykong at yahoo.com>
> > Cc: cmake at cmake.org
> > Date: Tuesday, August 25, 2009, 1:05 AM
> > On Tue, Aug 25, 2009 at 12:08:10AM
> > -0700, Xiangyun Kong wrote:
> > > I am trying to do a cross-compilation with CMake. I
> > got a problem
> > > in creating a 64-bit shared library on a Win32
> > platform.
> > > The problem is the CMAKE is always appending the
> > > /machine:I386 following my arch setup /machine:x64.
> >
> > Use the "Visual Studio 200X Win64" generator instead of the
> > "Visual
> > Studio 200X" generator.
> >
> > 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090825/14d9ae11/attachment.htm>


More information about the CMake mailing list