mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +08:00
15 lines
512 B
CMake
15 lines
512 B
CMake
include(vcpkg_execute_required_process)
|
|
|
|
function(vcpkg_extract_source_archive ARCHIVE)
|
|
if(NOT EXISTS ${CURRENT_BUILDTREES_DIR}/src)
|
|
message(STATUS "Extracting source ${ARCHIVE}")
|
|
file(MAKE_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src)
|
|
vcpkg_execute_required_process(
|
|
COMMAND ${CMAKE_COMMAND} -E tar xjf ${ARCHIVE}
|
|
WORKING_DIRECTORY ${CURRENT_BUILDTREES_DIR}/src
|
|
LOGNAME extract
|
|
)
|
|
endif()
|
|
message(STATUS "Extracting done")
|
|
endfunction()
|