mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 13:30:39 +00:00
FindDoxygen: Escape backslashes in default values
Doxygen 1.8.15 added a new LATEX_MAKEINDEX_CMD config item and it has a default value that contains a backslash on some installations. Fixes: #18738
This commit is contained in:
parent
8887ebc69b
commit
e81fd5d5ba
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user