Files
CMake/Tests/RunCMake/CacheNewline/CacheVarHelpString.cmake
Tyler Yankee 50ce808ca7 Tests: Move cache variable help string test
Even though it doesn't necessarily reuse infrastructure, the other
cases in `RunCMake.CacheNewlines` are covering more similar code to
this case than those in `RunCMake.Configure`.
2026-05-13 18:24:46 -04:00

22 lines
544 B
CMake

# Various newline possibilities
set(help_strings
"\n"
"\n\n\n"
"\n \n"
"\nline1"
"line1\n"
"\nline1\n"
"line1\nline2\nline3"
"\nline1\nline2\nline3\n"
"
line line line line line line line line line line line line line line line line
line line line line line line line line line line line line line line line line
line line line line line line line line line line line line line line line line"
)
foreach(help IN LISTS help_strings)
string(SHA1 name "${help}")
set("${name}" "" CACHE STRING "${help}" FORCE)
endforeach()