mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 12:28:59 +08:00
24 lines
795 B
CMake
24 lines
795 B
CMake
function(vcpkg_install_meson)
|
|
|
|
vcpkg_find_acquire_program(NINJA)
|
|
|
|
unset(ENV{DESTDIR}) # installation directory was already specified with '--prefix' option
|
|
|
|
message(STATUS "Package ${TARGET_TRIPLET}-rel")
|
|
vcpkg_execute_required_process(
|
|
COMMAND ${NINJA} install -v
|
|
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel
|
|
LOGNAME package-${TARGET_TRIPLET}-rel
|
|
)
|
|
message(STATUS "Package ${TARGET_TRIPLET}-rel done")
|
|
|
|
message(STATUS "Package ${TARGET_TRIPLET}-dbg")
|
|
vcpkg_execute_required_process(
|
|
COMMAND ${NINJA} install -v
|
|
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-dbg
|
|
LOGNAME package-${TARGET_TRIPLET}-dbg
|
|
)
|
|
message(STATUS "Package ${TARGET_TRIPLET}-dbg done")
|
|
|
|
endfunction()
|