vcpkg/scripts/cmake/vcpkg_find_acquire_program(BAZEL).cmake
2023-04-18 18:44:25 -07:00

24 lines
1.5 KiB
CMake

set(program_name bazel)
set(program_version 6.1.2)
set(rename_binary_to "bazel")
if(CMAKE_HOST_SYSTEM_NAME STREQUAL "Linux")
set(supported_on_unix ON)
set(tool_subdirectory "${program_version}-linux")
set(download_urls "https://github.com/bazelbuild/bazel/releases/download/${program_version}/bazel-${tool_subdirectory}-x86_64")
set(download_filename "bazel-${tool_subdirectory}-x86_64")
set(raw_executable ON)
set(download_sha512 f232fe04fde2cde3e3d9acc7fc1f89fa1637bbc99f604b4498ac98b36dec95b42803eb6439ba4afcc38a3c9d6986020979af58fbc34ca66b5f618864912f4aa7)
elseif(CMAKE_HOST_SYSTEM_NAME STREQUAL "Darwin")
set(supported_on_unix ON)
set(tool_subdirectory "${program_version}-darwin")
set(download_urls "https://github.com/bazelbuild/bazel/releases/download/${program_version}/bazel-${tool_subdirectory}-x86_64")
set(download_filename "bazel-${tool_subdirectory}-x86_64")
set(raw_executable ON)
set(download_sha512 4642b2f853d51630af52038c9319a04462794e1a3d15f2fa6af9fb1ba726d4b5f729222ee4d9cc51dd7dcfa169ce74458d762aa3241be5e106ef70716266480e)
else()
set(tool_subdirectory "${program_version}-windows")
set(download_urls "https://github.com/bazelbuild/bazel/releases/download/${program_version}/bazel-${tool_subdirectory}-x86_64.zip")
set(download_filename "bazel-${tool_subdirectory}-x86_64.zip")
set(download_sha512 3feeed099514bd06a1d2ec908e6ec5f07114734e3b74b6255b3c42974bc2511f48852e46237d1da7d7754c28ede9a5c36893142709f45239c98193f7fabb1a8e)
endif()