mirror of
https://github.com/zeromq/libzmq.git
synced 2024-12-27 07:31:03 +08:00
Problem: Documentation still has .txt suffix
Solution: The regular expression replacement expected a non-existing space at the beginning of the input files.
This commit is contained in:
parent
1303eea508
commit
ae08099eb5
@ -623,7 +623,7 @@ file (MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/doc)
|
|||||||
file (GLOB docs RELATIVE ${CMAKE_CURRENT_BINARY_DIR}/ "${CMAKE_CURRENT_SOURCE_DIR}/doc/*.txt")
|
file (GLOB docs RELATIVE ${CMAKE_CURRENT_BINARY_DIR}/ "${CMAKE_CURRENT_SOURCE_DIR}/doc/*.txt")
|
||||||
set (html-docs)
|
set (html-docs)
|
||||||
foreach (txt ${docs})
|
foreach (txt ${docs})
|
||||||
string (REGEX REPLACE ".*/ (.*)\\.txt" "\\1.html" html ${txt})
|
string (REGEX REPLACE ".*/(.*)\\.txt" "\\1.html" html ${txt})
|
||||||
set (src ${txt})
|
set (src ${txt})
|
||||||
set (dst doc/${html})
|
set (dst doc/${html})
|
||||||
add_custom_command (
|
add_custom_command (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user