aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/ci/appveyor/generator.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-01-25 16:05:51 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-01-31 14:25:07 +0300
commitd4673a2ff058529488dddf2e0520ee68ec88a0c7 (patch)
treea2a622511aa5af0b67d91da19937b48539f67041 /project/ci/appveyor/generator.py
parentproject.ci: auto-fill --toolset from environment (diff)
downloadcmake-common-d4673a2ff058529488dddf2e0520ee68ec88a0c7.tar.gz
cmake-common-d4673a2ff058529488dddf2e0520ee68ec88a0c7.zip
project.ci: use pre-built Boost when available
Diffstat (limited to 'project/ci/appveyor/generator.py')
-rw-r--r--project/ci/appveyor/generator.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/project/ci/appveyor/generator.py b/project/ci/appveyor/generator.py
index 19c11df..454bd4a 100644
--- a/project/ci/appveyor/generator.py
+++ b/project/ci/appveyor/generator.py
@@ -28,6 +28,19 @@ class Image(Enum):
def get():
return Image.parse(env('APPVEYOR_BUILD_WORKER_IMAGE'))
+ def get_prebuilt_boost_dir(self):
+ # As of 2021-01-25, these are the latest pre-built Boost distributions:
+ # https://www.appveyor.com/docs/windows-images-software/#boost
+ if self is Image.VS_2013:
+ return 'C:\\Libraries\\boost_1_58_0'
+ if self is Image.VS_2015:
+ return 'C:\\Libraries\\boost_1_69_0'
+ if self is Image.VS_2017:
+ return 'C:\\Libraries\\boost_1_69_0'
+ if self is Image.VS_2019:
+ return 'C:\\Libraries\\boost_1_73_0'
+ raise NotImplementedError(f'unsupported AppVeyor image: {self}')
+
class Generator(Enum):
VS_2013 = 'Visual Studio 12 2013'