Unify and enforce a CMake coding style.
this fixes https://github.com/glfw/glfw/issues/1334 for macOS Mojave