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