Commit c1922c96 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'doxygen-escaping'


 FindDoxygen: Escape backslashes in default values
Acked-by: Kitware Robot's avatarKitware Robot <>
Acked-by: Julien Schueller's avatarJulien Schueller <>
Merge-request: !2867
parents a844c724 e81fd5d5
Pipeline #128748 passed with stage
in 0 seconds
......@@ -713,7 +713,9 @@ if(TARGET Doxygen::doxygen)
if(_line MATCHES "([A-Z][A-Z0-9_]+)( *=)(.*)")
set(_key "${CMAKE_MATCH_1}")
set(_eql "${CMAKE_MATCH_2}")
string(REPLACE ";" "\\\n" _value "${CMAKE_MATCH_3}")
set(_value "${CMAKE_MATCH_3}")
string(REPLACE "\\" "\\\\" _value "${_value}")
string(REPLACE ";" "\\\n" _value "${_value}")
list(APPEND _Doxygen_tpl_params "${_key}${_eql}${_value}")
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment