Don't change this.  If you CMAKE_SYSTEM_NAME is changed than ${WIN32} may be false on a win32 platform - but we still need the regkeys.