diff --git a/appveyor.yml b/appveyor.yml
index f350f0664513ff2f73243ab551736961ea938ef6..0dd5a2ed1ebf980c1cf1e77100ece6dfc72e95a0 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -4,6 +4,11 @@ branches:
 
 os: Visual Studio 2015
 
+environment:
+  matrix:
+    - CMAKE_VS_VERSION: "10 2010"
+    - CMAKE_VS_VERSION: "14 2015"
+
 platform:
   - x86
   - x64
@@ -13,7 +18,7 @@ configuration:
   - Release
 
 before_build:
-  - cmake -G"Visual Studio 10 2010"
+  - cmake -G"Visual Studio %CMAKE_VS_VERSION%"
   # This cuts down on a lot of noise generated by xamarin warnings.
   - del "C:\Program Files (x86)\MSBuild\14.0\Microsoft.Common.targets\ImportAfter\Xamarin.Common.targets"