mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 01:09:07 +08:00
cmake: update to 3.9
This commit is contained in:
parent
b277b4dda3
commit
5d86005aa7
@ -151,12 +151,12 @@ function SelectProgram([Parameter(Mandatory=$true)][string]$Dependency)
|
||||
|
||||
if($Dependency -eq "cmake")
|
||||
{
|
||||
$requiredVersion = "3.8.0"
|
||||
$downloadVersion = "3.8.0"
|
||||
$url = "https://cmake.org/files/v3.8/cmake-3.8.0-win32-x86.zip"
|
||||
$downloadPath = "$downloadsDir\cmake-3.8.0-win32-x86.zip"
|
||||
$expectedDownloadedFileHash = "857fca00974ad6ac12fa042373d85ad1288770d4f09fbd99753c822df76b1c6c"
|
||||
$executableFromDownload = "$downloadsDir\cmake-3.8.0-win32-x86\bin\cmake.exe"
|
||||
$requiredVersion = "3.9.0"
|
||||
$downloadVersion = "3.9.0"
|
||||
$url = "https://cmake.org/files/v3.9/cmake-3.9.0-win32-x86.zip"
|
||||
$downloadPath = "$downloadsDir\cmake-3.9.0-win32-x86.zip"
|
||||
$expectedDownloadedFileHash = "9d593839f64b94718a1b75b8519b56ecb959e4d37d406bf2a087e2c1f7a6b89c"
|
||||
$executableFromDownload = "$downloadsDir\cmake-3.9.0-win32-x86\bin\cmake.exe"
|
||||
$extractionType = $ExtractionType_ZIP
|
||||
$extractionFolder = $downloadsDir
|
||||
}
|
||||
|
@ -98,10 +98,10 @@ namespace vcpkg
|
||||
|
||||
static fs::path get_cmake_path(const fs::path& downloads_folder, const fs::path scripts_folder)
|
||||
{
|
||||
static constexpr std::array<int, 3> expected_version = {3, 8, 0};
|
||||
static constexpr std::array<int, 3> expected_version = {3, 9, 0};
|
||||
static const std::wstring version_check_arguments = L"--version";
|
||||
|
||||
const fs::path downloaded_copy = downloads_folder / "cmake-3.8.0-win32-x86" / "bin" / "cmake.exe";
|
||||
const fs::path downloaded_copy = downloads_folder / "cmake-3.9.0-win32-x86" / "bin" / "cmake.exe";
|
||||
const std::vector<fs::path> from_path = find_from_PATH(L"cmake");
|
||||
|
||||
std::vector<fs::path> candidate_paths;
|
||||
|
Loading…
Reference in New Issue
Block a user