mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 02:17:50 +08:00
63901137f6
* Add doxygen to acquired programs * Add packages option to msys function * Add documentation for PACKAGES in vcpkg_require_msys * [ffmpeg][x264] Update to use `PACKAGES` parameter. Tweak docs.
1.2 KiB
1.2 KiB
vcpkg_acquire_msys
Download and prepare an MSYS2 instance.
Usage
vcpkg_acquire_msys(<MSYS_ROOT_VAR> [PACKAGES <package>...])
Parameters
MSYS_ROOT_VAR
An out-variable that will be set to the path to MSYS2.
PACKAGES
A list of packages to acquire in msys.
To ensure a package is available: vcpkg_acquire_msys(MSYS_ROOT PACKAGES make automake1.15)
Notes
A call to vcpkg_acquire_msys
will usually be followed by a call to bash.exe
:
vcpkg_acquire_msys(MSYS_ROOT)
set(BASH ${MSYS_ROOT}/usr/bin/bash.exe)
vcpkg_execute_required_process(
COMMAND ${BASH} --noprofile --norc "${CMAKE_CURRENT_LIST_DIR}\\build.sh"
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
LOGNAME build-${TARGET_TRIPLET}-rel
)