-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue with comments in COMMAND of add_custom_command (#16)
- Loading branch information
1 parent
d41db4b
commit 68af084
Showing
7 changed files
with
40 additions
and
6 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
10 changes: 10 additions & 0 deletions
10
tests/formatter/issue_0016_force_line_break_by_using_comment.in.cmake
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,10 @@ | ||
### {unsafe: true} | ||
add_custom_command(OUTPUT src.tar.zst DEPENDS ${SRC} COMMAND | ||
set -euo pipefail # line comment | ||
&& tar -c src | zstd --ultra -22 > src.tar.zst # | ||
) | ||
|
||
add_custom_command(OUTPUT src.tar.zst DEPENDS ${SRC} COMMAND | ||
set -euo pipefail #[[bracket comment]] | ||
&& tar -c src | zstd --ultra -22 > src.tar.zst # | ||
) |
15 changes: 15 additions & 0 deletions
15
tests/formatter/issue_0016_force_line_break_by_using_comment.out.cmake
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,15 @@ | ||
add_custom_command( | ||
OUTPUT src.tar.zst | ||
DEPENDS ${SRC} | ||
COMMAND | ||
set -euo pipefail # line comment | ||
&& tar -c src | zstd --ultra -22 > src.tar.zst # | ||
) | ||
|
||
add_custom_command( | ||
OUTPUT src.tar.zst | ||
DEPENDS ${SRC} | ||
COMMAND | ||
set -euo pipefail #[[bracket comment]] | ||
&& tar -c src | zstd --ultra -22 > src.tar.zst # | ||
) |