2
votes

Is there a way to use the cmake gui to specify a x64 build, since by default cmake on windows creates a 32-bit Visual Studio solution.

From the command line, folks say to do this:

C:\projectx\build> cmake ..\make -G "Visual Studio 10 Win64"

but how do I get to the command line arguments from the cmake windows gui?

see:

http://www.saoe.net/blog/778/

How to build x86 and/or x64 on Windows from command line with CMAKE?

cmake -G Ninja on windows specify x64

2

2 Answers

2
votes

The only way I have found to do this, is to wipe the output folder, and then it lets you select Visual Studio 10 Win64 when you first configure the cmake project. Make sure you choose the correct item in the dropdown.

1
votes

You can specify it during the first configure process.

After that, if you want to change the machine type you need to delete the cache with the "Delete Cache" command in the "File" menu and start the configure process again.