mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-29 22:00:32 +08:00
7d2449c346
* [docs] Delete embedded documentation in favor of docs/ Drive-by for the helper ports: 1. "documentation": "https://vcpkg.io/en/docs/README.html" 2. "license": "MIT" 3. Use `include_guard(GLOBAL)` in all script files 4. Make sure any persistent variables are saved to the cache * [docs] Restore empty regenerate.ps1 to satisfy Azure Pipelines * [docs] PR comments
12 lines
485 B
CMake
12 lines
485 B
CMake
function(vcpkg_extract_source_archive_ex)
|
|
# OUT_SOURCE_PATH is an out-parameter so we need to parse it
|
|
cmake_parse_arguments(PARSE_ARGV 0 "arg" "" "OUT_SOURCE_PATH" "")
|
|
if(NOT DEFINED arg_OUT_SOURCE_PATH)
|
|
message(FATAL_ERROR "OUT_SOURCE_PATH must be specified")
|
|
endif()
|
|
|
|
vcpkg_extract_source_archive(source_path ${arg_UNPARSED_ARGUMENTS} Z_ALLOW_OLD_PARAMETER_NAMES)
|
|
|
|
set("${arg_OUT_SOURCE_PATH}" "${source_path}" PARENT_SCOPE)
|
|
endfunction()
|