Avoid D9025 warning by not adding /W3 by default using CMP0092 policy
See https://gitlab.kitware.com/cmake/cmake/-/issues/18317
Set policies before declaring the project otherwise they might not take effect. Specifically CMP0092 does not have effect added after project.