Files
cmake/Tests/RunCMake/CacheNewline/CacheStartsWithNewline-CMakeCacheRegex.txt
Tyler Yankee 053f02a41c cmCacheManager: Fix warning comment for cache vars containing newlines
Reuse the logic from commit 637a0f7ed4 (cmCacheManager: Prevent
corruption from multiline help strings, 2025-02-04, v4.0.0-rc1~52^2)
for the warning message placed in the cache when a cache variable's
value contains one or more newline characters.

While we're at it, remove a superfluous early-exit in the help strings
method.

Fixes: #27807

Suggested-By: Yauheni Khnykin <yauheni.khnykin@here.com>
2026-05-13 18:21:04 -04:00

7 lines
153 B
Plaintext

//Offending entry
NEWLINE_VARIABLE:STRING=
# WARNING: Value of NEWLINE_VARIABLE contained a newline and was
# truncated\. Original value:
# \\na
# \\nb