diff options
| author | nicole mazzuca <mazzucan@outlook.com> | 2021-02-09 15:53:36 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-09 15:53:36 -0800 |
| commit | 545c165ce08bff237b1468f42b0607e899dab959 (patch) | |
| tree | 3aad8bb834164adc8b9939f493cc3d8b592d7111 /scripts/cmake/vcpkg_prettify_command.cmake | |
| parent | 4502f8ed6874fa29a54e1a1a49d32bcf1cb5fddf (diff) | |
| download | vcpkg-545c165ce08bff237b1468f42b0607e899dab959.tar.gz vcpkg-545c165ce08bff237b1468f42b0607e899dab959.zip | |
[(z_)vcpkg_prettify_command(_line)] Scripts Tree Audit (#16130)
* [vcpkg_prettify_command] Audit
* rename file
* rename out-var in docs
* fix file path
* add internal use message to docs
* escapin' in z_vcpkg_prettify_command_line
* regenerate docs
Diffstat (limited to 'scripts/cmake/vcpkg_prettify_command.cmake')
| -rw-r--r-- | scripts/cmake/vcpkg_prettify_command.cmake | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/scripts/cmake/vcpkg_prettify_command.cmake b/scripts/cmake/vcpkg_prettify_command.cmake deleted file mode 100644 index 25ad95eec..000000000 --- a/scripts/cmake/vcpkg_prettify_command.cmake +++ /dev/null @@ -1,28 +0,0 @@ -#[===[.md:
-# vcpkg_prettify_command
-
-Turns list of command arguments into a formatted string.
-
-## Usage
-```cmake
-vcpkg_prettify_command(<INPUT_VAR> <OUTPUT_VAR>)
-```
-
-## Examples
-
-* `scripts/cmake/vcpkg_execute_build_process.cmake`
-* `scripts/cmake/vcpkg_execute_required_process.cmake`
-* `scripts/cmake/vcpkg_execute_required_process_repeat.cmake`
-#]===]
-
-macro(vcpkg_prettify_command INPUT_VAR OUTPUT_VAR)
- set(${OUTPUT_VAR} "")
- foreach(v ${${INPUT_VAR}})
- if(v MATCHES "( )")
- list(APPEND ${OUTPUT_VAR} "\"${v}\"")
- else()
- list(APPEND ${OUTPUT_VAR} "${v}")
- endif()
- endforeach()
- list(JOIN ${OUTPUT_VAR} " " ${OUTPUT_VAR})
-endmacro()
|
