Slightly change DOC_HIDE magic
The following commits will add DOC_HIDE uses that are not at the end of the line, but the beginning. Hence, drop the requirement that it appears at the end of the line and change the ".+" at the beginning into ".*". Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
b4387d387d
commit
af59d52ddf
|
@ -57,7 +57,7 @@ function(escape_string variable content escaped_content line_prefix)
|
||||||
|
|
||||||
set(tmp_output ${content})
|
set(tmp_output ${content})
|
||||||
foreach (LINE ${var_lines})
|
foreach (LINE ${var_lines})
|
||||||
if(NOT LINE MATCHES "^.+--DOC_[A-Z]+$")
|
if(NOT LINE MATCHES "^.*--DOC_[A-Z]+")
|
||||||
set(tmp_output ${tmp_output}\n--${line_prefix}${LINE})
|
set(tmp_output ${tmp_output}\n--${line_prefix}${LINE})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
Loading…
Reference in New Issue