summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-01-28 13:30:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-01-28 13:30:07 (GMT)
commitc1922c9660298bb0e70204e66d596adb3d104ac0 (patch)
tree6be0b019e951cbf0e0aacb4fb4d7e0a7ce93fc14
parenta844c7248d7cfca9569ea8aa6a2147f564a5b2f1 (diff)
parente81fd5d5ba24e46a3a27c6a4e061932cf2022ef2 (diff)
downloadCMake-c1922c9660298bb0e70204e66d596adb3d104ac0.zip
CMake-c1922c9660298bb0e70204e66d596adb3d104ac0.tar.gz
CMake-c1922c9660298bb0e70204e66d596adb3d104ac0.tar.bz2
Merge topic 'doxygen-escaping'
e81fd5d5ba FindDoxygen: Escape backslashes in default values Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Julien Schueller <schueller@phimeca.com> Merge-request: !2867
-rw-r--r--Modules/FindDoxygen.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/Modules/FindDoxygen.cmake b/Modules/FindDoxygen.cmake
index fdd3a92..32b4aa2 100644
--- a/Modules/FindDoxygen.cmake
+++ b/Modules/FindDoxygen.cmake
@@ -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}")
endif()
endforeach()