# Building Windows 64-bit (VS2015)

**URL:** <https://discourse.glfw.org/t/building-windows-64-bit-vs2015/973>\
**Category:** support\
**Created:** [August 21, 2017, 1:23pm UTC](https://discourse.glfw.org/t/building-windows-64-bit-vs2015/973 "2017-08-21T13:23:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![enci](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/enci/32/89_2.png) [@enci](https://discourse.glfw.org/u/enci)\
**Post date:** [August 21, 2017, 1:23pm UTC](https://discourse.glfw.org/t/building-windows-64-bit-vs2015/973/1 "2017-08-21T13:23:00Z")

</div>

I have just switched to the master branch (was using the binaries). The VS projects generated seem to have only 32-bit targets. Is there an option I need to pass to CMake to generate 64-bit projects? Or is there something else that is right under my nose?

---

<div class="post-metadata">

**Author:** ![elmindreda](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/elmindreda/32/26_2.png) [@elmindreda](https://discourse.glfw.org/u/elmindreda)\
**Post date:** [August 21, 2017, 1:45pm UTC](https://discourse.glfw.org/t/building-windows-64-bit-vs2015/973/2 "2017-08-21T13:45:25Z")

</div>

Yup, it’s a CMake option.

In the CMake GUI pick the generator for your version of VS that ends in `Win64`, or if you’re on the command-line append `Win64` to the generator name (e.g. `cmake -G " Visual Studio 14 2015 Win64" ...`).

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [August 21, 2017, 1:46pm UTC](https://discourse.glfw.org/t/building-windows-64-bit-vs2015/973/3 "2017-08-21T13:46:18Z")

</div>

Cmake is a bit of a pain for selecting 64bit on Windows, though the latest  
version is trying to make it easier.

I’m away from my computer atm but you need the option like

-G “Visual Studo 15 2017 Win64”

---

<div class="post-metadata">

**Author:** ![enci](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/enci/32/89_2.png) [@enci](https://discourse.glfw.org/u/enci)\
**Post date:** [August 21, 2017, 2:12pm UTC](https://discourse.glfw.org/t/building-windows-64-bit-vs2015/973/4 "2017-08-21T14:12:39Z")

</div>

That worked like a charm. Thanks!
