mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 07:31:37 +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
16 lines
518 B
CMake
16 lines
518 B
CMake
function(z_vcpkg_prettify_command_line out_var)
|
|
set(output_list "")
|
|
z_vcpkg_function_arguments(args 1)
|
|
foreach(v IN LISTS args)
|
|
string(REPLACE [[\]] [[\\]] v "${v}")
|
|
if(v MATCHES "( )")
|
|
string(REPLACE [["]] [[\"]] v "${v}")
|
|
list(APPEND output_list "\"${v}\"")
|
|
else()
|
|
list(APPEND output_list "${v}")
|
|
endif()
|
|
endforeach()
|
|
list(JOIN output_list " " output)
|
|
set("${out_var}" "${output}" PARENT_SCOPE)
|
|
endfunction()
|