diff options
author | Brad King <brad.king@kitware.com> | 2019-01-28 13:29:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-01-28 13:29:28 (GMT) |
commit | f4547578aa365164f1ef48c4f546828752cf4835 (patch) | |
tree | 88dfc200208a80aaf9dae43333e768aca2619101 | |
parent | 27eb8cc6ba96ae856c3ad12cfe0503e3d822482e (diff) | |
parent | e81fd5d5ba24e46a3a27c6a4e061932cf2022ef2 (diff) | |
download | CMake-f4547578aa365164f1ef48c4f546828752cf4835.zip CMake-f4547578aa365164f1ef48c4f546828752cf4835.tar.gz CMake-f4547578aa365164f1ef48c4f546828752cf4835.tar.bz2 |
Merge branch 'doxygen-escaping' into release-3.13
Merge-request: !2867
-rw-r--r-- | Modules/FindDoxygen.cmake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindDoxygen.cmake b/Modules/FindDoxygen.cmake index 2ed9449..cb4738b 100644 --- a/Modules/FindDoxygen.cmake +++ b/Modules/FindDoxygen.cmake @@ -708,7 +708,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}") endif() endforeach() |