mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 17:58:01 +08:00
Fix WITH_DOC
This commit is contained in:
parent
54b89858ab
commit
ec7b9480f5
@ -674,6 +674,7 @@ 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})
|
||||||
|
if (WITH_DOC)
|
||||||
add_custom_command (
|
add_custom_command (
|
||||||
OUTPUT ${dst}
|
OUTPUT ${dst}
|
||||||
COMMAND ${ASCIIDOC_EXECUTABLE}
|
COMMAND ${ASCIIDOC_EXECUTABLE}
|
||||||
@ -686,7 +687,6 @@ foreach (txt ${docs})
|
|||||||
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${src}
|
DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${src}
|
||||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||||
COMMENT "Generating ${html}")
|
COMMENT "Generating ${html}")
|
||||||
if (WITH_DOC)
|
|
||||||
list (APPEND html-docs ${CMAKE_CURRENT_BINARY_DIR}/${dst})
|
list (APPEND html-docs ${CMAKE_CURRENT_BINARY_DIR}/${dst})
|
||||||
endif ()
|
endif ()
|
||||||
endforeach ()
|
endforeach ()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user