mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-09-25 04:09:36 +03:00
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>
7 lines
153 B
Plaintext
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
|