mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Considerations of Ninja's control sequences was not considered in
30fb5b1b22 (Ninja: add COMMENT to build statement descriptions,
2024-05-01) via !9484. Escape both newlines and dollar signs.
Fixes: #27181
12 lines
372 B
CMake
12 lines
372 B
CMake
enable_language(C)
|
|
|
|
add_executable(comments_with_dollars hello.c)
|
|
add_custom_command(TARGET comments_with_dollars PRE_LINK
|
|
COMMAND "${CMAKE_COMMAND}" -E echo prelink
|
|
COMMENT "prelink with
|
|
\$dollars")
|
|
add_custom_command(TARGET comments_with_dollars POST_BUILD
|
|
COMMAND "${CMAKE_COMMAND}" -E echo postbuild
|
|
COMMENT "postbuild with
|
|
\$dollars")
|