mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-11 01:24:12 +00:00
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`.
22 lines
544 B
CMake
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()
|