How do I check with CMake whether I'm configuring a Visual Studio solution for e.g. Windows 7 or Windows 8?

Is there any way to do this?

Edit
Report