[CMake] win32 and x64 in the same generator?

Sergey Rudchenko sergey.rudchenko at gmail.com
Tue Jun 2 03:30:18 EDT 2009


Philip Lowman wrote:
> On Mon, Jun 1, 2009 at 6:29 PM, Tyler Roscoe <tyler at cryptio.net 
> <mailto:tyler at cryptio.net>> wrote:
>
>     What are the pitfalls or difficulties in supporting this sort of
>     "cross-compiling" in Visual Studio?
>
>
> Two things come to mind:
>
> 1. find_library() (i.e. dependencies).. How would you pick 64-bit vs. 
> 32-bit?
> 2. When compile tests are run (e.g. sizeof(void*) ).  Which compiler 
> would be used, 32-bit or 64-bit?
There could also be a problem if someone wants to select a different 
sources for x64 build.
So, the current way provides ability to to tune lots of things in the 
configure time.

Wbr,
Sergey


More information about the CMake mailing list