Skip to content

Commit

Permalink
Try to fix Appveyor build (remove obsolete VS2012 support)
Browse files Browse the repository at this point in the history
  • Loading branch information
sgallou committed Jun 10, 2020
1 parent a2da9fb commit cee78bf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -11,7 +11,7 @@ if(POLICY CMP0042)
endif()

if(POLICY CMP0077)
cmake_policy(SET CMP0077 NEW) # CMake options behaviour
cmake_policy(SET CMP0077 NEW) # CMake option behaviour
endif()

# for unix platform, define install directories.
Expand Down
13 changes: 8 additions & 5 deletions appveyor.yml
Expand Up @@ -2,10 +2,6 @@ version: '0.7.4.{build}'

environment:
matrix:
- PRJ_GEN: "Visual Studio 11 2012 Win64"
BDIR: msvc2012
PRJ_CFG: Release
PRJ_GEN_VERSION: 11
- PRJ_GEN: "Visual Studio 12 2013 Win64"
BDIR: msvc2013
PRJ_CFG: Release
Expand All @@ -26,6 +22,14 @@ environment:
BDIR: msvc2015
PRJ_CFG: Debug
PRJ_GEN_VERSION: 14
- PRJ_GEN: "Visual Studio 15 2017 Win64"
BDIR: msvc2017
PRJ_CFG: Debug
PRJ_GEN_VERSION: 15
- PRJ_GEN: "Visual Studio 16 2019 Win64"
BDIR: msvc2019
PRJ_CFG: Debug
PRJ_GEN_VERSION: 16

install:
- cmd: echo "Downloading conan..."
Expand All @@ -36,7 +40,6 @@ install:

build_script:
- mkdir build.%BDIR%
- IF %PRJ_GEN_VERSION% == 11 call "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\vsvars32.bat"
- conan install --build=missing -s compiler="Visual Studio" -s compiler.version=%PRJ_GEN_VERSION% -s build_type=%PRJ_CFG% .
- cd build.%BDIR%
- cmake .. -G"%PRJ_GEN%"
Expand Down

0 comments on commit cee78bf

Please sign in to comment.