mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-28 03:10:57 +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
22 lines
577 B
CMake
22 lines
577 B
CMake
include_guard(GLOBAL)
|
|
|
|
function(vcpkg_cmake_install)
|
|
cmake_parse_arguments(PARSE_ARGV 0 "arg" "DISABLE_PARALLEL;ADD_BIN_TO_PATH" "" "")
|
|
if(DEFINED arg_UNPARSED_ARGUMENTS)
|
|
message(FATAL_ERROR "vcpkg_cmake_install was passed extra arguments: ${arg_UNPARSED_ARGUMENTS}")
|
|
endif()
|
|
|
|
set(args)
|
|
foreach(arg IN ITEMS DISABLE_PARALLEL ADD_BIN_TO_PATH)
|
|
if(arg_${arg})
|
|
list(APPEND args "${arg}")
|
|
endif()
|
|
endforeach()
|
|
|
|
vcpkg_cmake_build(
|
|
${args}
|
|
LOGFILE_BASE install
|
|
TARGET install
|
|
)
|
|
endfunction()
|