forked from microsoft/vcpkg
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vcpkg] Use spaces instead of semicolons in the output (microsoft#7080)
* Use spaces instead of semicolons in the output * Add prettify_command macro * Move pretty_command macro to a separate file
- Loading branch information
Showing
5 changed files
with
36 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
## # vcpkg_prettify_command | ||
## | ||
## Turns list of command arguments into a formatted string. | ||
## | ||
## ## Usage | ||
## ```cmake | ||
## vcpkg_prettify_command() | ||
## ``` | ||
## | ||
## ## 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() |