title: Building CMake for Windows from source by bootstrapping on Linux, then cross-compiling
body: <p><a href="http://www.cmake.org/" rel="nofollow">CMake</a> is a build system, but Windows binaries provided by the official project are neither code-signed nor signed with PGP.</p>
  
  <p>So if you are like me and distrust the prebuilt binaries you may find the answer below useful.</p>
  
  <p>I ran into a number of issues on the path to my CMake build for Windows, so the answer below may spare you some trial and error or generally repeating some steps.</p>
  
  <hr>
  
  <p>Last time I checked the MinGW distribution was not signed either and aside from that it appears to be rather sluggish compared to GCC on Linux.</p>