aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/scripts/cmake/vcpkg_find_acquire_program(BISON).cmake
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/scripts/cmake/vcpkg_find_acquire_program(BISON).cmake
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/scripts/cmake/vcpkg_find_acquire_program(BISON).cmake')
-rw-r--r--vcpkg/scripts/cmake/vcpkg_find_acquire_program(BISON).cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/scripts/cmake/vcpkg_find_acquire_program(BISON).cmake b/vcpkg/scripts/cmake/vcpkg_find_acquire_program(BISON).cmake
new file mode 100644
index 0000000..ff2ea49
--- /dev/null
+++ b/vcpkg/scripts/cmake/vcpkg_find_acquire_program(BISON).cmake
@@ -0,0 +1,23 @@
+if(CMAKE_HOST_WIN32)
+ # This download shall be the same as in vcpkg_find_acquire_program(FLEX).cmake
+ # Note that this is 2.5.24 rather than 2.5.25 due to a race in %TEMP% in 2.5.25
+ # For more information, see: https://github.com/microsoft/vcpkg/issues/29139
+ # or: https://github.com/lexxmark/winflexbison/issues/86
+ set(program_version 2.5.24)
+ 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 dc89fcdaa7071fbbf88b0755b799d69223240c28736924b4c30968c08e7e0b116c7e05ae98a9257be26a1dfb4aa70a628808a6b6018706bf857555c5b4335018)
+ set(tool_subdirectory "${program_version}")
+ set(program_name win_bison)
+ 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 bison)
+ set(apt_package_name bison)
+ set(brew_package_name bison)
+ if (CMAKE_HOST_APPLE)
+ set(paths_to_search /opt/homebrew/opt/bison/bin /usr/local/opt/bison/bin)
+ endif()
+endif()