vcpkg/scripts/cmake/vcpkg_find_acquire_program(YASM).cmake
Billy O'Neal 83712a6060
Improve and extract internals of vcpkg_find_acquire_program. (#34881)
* Extract vcpkg_extract_archive from vcpkg_find_acquire_program.

* Extract vcpkg_download_sourceforge from vcpkg_from_sourceforge.

This allows vcpkg_find_acquire_program to download from SourceForge without needing to temporarily change _VCPKG_EDITABLE.

* Use whether a URI is known for an entity to decide whether to downloads it rather than checking a separate supported_on_unix boolean.

* Add unparsed arguments check to vcpkg_extract_archive
2023-11-14 14:01:08 -08:00

13 lines
577 B
CMake

set(program_name yasm)
set(program_version 1.3.0.6.g1962)
set(brew_package_name "yasm")
set(apt_package_name "yasm")
if(CMAKE_HOST_WIN32)
set(download_urls "https://www.tortall.net/projects/yasm/snapshots/v${program_version}/yasm-${program_version}.exe")
set(download_filename "yasm-${program_version}.exe")
set(download_sha512 c1945669d983b632a10c5ff31e86d6ecbff143c3d8b2c433c0d3d18f84356d2b351f71ac05fd44e5403651b00c31db0d14615d7f9a6ecce5750438d37105c55b)
set(tool_subdirectory 1.3.0.6)
set(raw_executable ON)
set(rename_binary_to "yasm.exe")
endif()