since only Win32 CMake has a registry write command, wrap with #ifdef so no errors are generated
Merge branch 'win32_only_ifdef'