summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-02-15 17:46:37 (GMT)
committerKitware Robot <kwrobot@kitware.com>2024-02-15 17:46:50 (GMT)
commite9d88df971872f728061e1e1c5ff9124be30d524 (patch)
treefe74badc2f4c4493982a00aecf60f0cfda6a1a67 /Tests/RunCMake
parent12160f2a16949b412670397df8d9c4fcae14f7f3 (diff)
parent879690ba141e15f787b8d6cae57ebfc421219e4e (diff)
downloadCMake-e9d88df971872f728061e1e1c5ff9124be30d524.zip
CMake-e9d88df971872f728061e1e1c5ff9124be30d524.tar.gz
CMake-e9d88df971872f728061e1e1c5ff9124be30d524.tar.bz2
Merge topic 'genex-quote'
879690ba14 GeneratorExpression: Add $<QUOTE> generator expression Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9242
Diffstat (limited to 'Tests/RunCMake')
-rw-r--r--Tests/RunCMake/add_custom_command/CommentGenex-build-stdout.txt2
-rw-r--r--Tests/RunCMake/add_custom_command/CommentGenex.cmake2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/add_custom_command/CommentGenex-build-stdout.txt b/Tests/RunCMake/add_custom_command/CommentGenex-build-stdout.txt
index bf49657..76708c4 100644
--- a/Tests/RunCMake/add_custom_command/CommentGenex-build-stdout.txt
+++ b/Tests/RunCMake/add_custom_command/CommentGenex-build-stdout.txt
@@ -1 +1 @@
-lorem ipsum, 01
+"lorem ipsum, 01"
diff --git a/Tests/RunCMake/add_custom_command/CommentGenex.cmake b/Tests/RunCMake/add_custom_command/CommentGenex.cmake
index f517392..b3931f4 100644
--- a/Tests/RunCMake/add_custom_command/CommentGenex.cmake
+++ b/Tests/RunCMake/add_custom_command/CommentGenex.cmake
@@ -3,7 +3,7 @@ set_property(TARGET helper PROPERTY MY_TEXT "lorem ipsum")
add_custom_command(
OUTPUT out.txt
COMMAND ${CMAKE_COMMAND} -E echo true
- COMMENT "$<TARGET_PROPERTY:helper,MY_TEXT>$<COMMA> $<STREQUAL:foo,bar>$<EQUAL:42,42>"
+ COMMENT "$<QUOTE>$<TARGET_PROPERTY:helper,MY_TEXT>$<COMMA> $<STREQUAL:foo,bar>$<EQUAL:42,42>$<QUOTE>"
)
set_property(SOURCE out.txt PROPERTY SYMBOLIC 1)
add_custom_target(main ALL DEPENDS out.txt)