mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 01:09:07 +08:00
18 lines
901 B
CMake
18 lines
901 B
CMake
if(CMAKE_HOST_WIN32)
|
|
# This download shall be the same as in vcpkg_find_acquire_program(BISON).cmake
|
|
set(program_version 2.5.25)
|
|
set(download_urls "https://github.com/lexxmark/winflexbison/releases/download/v${program_version}/win_flex_bison-${program_version}.zip")
|
|
set(download_filename "win_flex_bison-${program_version}.zip")
|
|
set(download_sha512 2a829eb05003178c89f891dd0a67add360c112e74821ff28e38feb61dac5b66e9d3d5636ff9eef055616aaf282ee8d6be9f14c6ae4577f60bdcec96cec9f364e)
|
|
set(tool_subdirectory "${program_version}")
|
|
set(program_name win_flex)
|
|
set(paths_to_search "${DOWNLOADS}/tools/win_flex/${program_version}")
|
|
if(NOT EXISTS "${paths_to_search}/data/m4sugar/m4sugar.m4")
|
|
file(REMOVE_RECURSE "${paths_to_search}")
|
|
endif()
|
|
else()
|
|
set(program_name flex)
|
|
set(apt_package_name flex)
|
|
set(brew_package_name flex)
|
|
endif()
|