since only Win32 CMake has a registry write command, wrap with #ifdef so...

... no errors are generated.

write_regv appears to be a write to registry command, which obviously only exists on Windows CMake. wrap to avoid ugly error message by CMake.