|
@ -2,19 +2,18 @@ find_program(XMLTO_EXECUTABLE NAMES xmlto) |
|
|
find_program(ASCIIDOC_EXECUTABLE NAMES asciidoc asciidoc.py) |
|
|
find_program(ASCIIDOC_EXECUTABLE NAMES asciidoc asciidoc.py) |
|
|
|
|
|
|
|
|
# Opt-in doc build option |
|
|
# Opt-in doc build option |
|
|
if (XMLTO_EXECUTABLE-NOTFOUND OR ASCIIDOC_EXECUTABLE-NOTFOUND) |
|
|
|
|
|
|
|
|
if (NOT XMLTO_EXECUTABLE OR NOT ASCIIDOC_EXECUTABLE) |
|
|
option(WITH_DOC_MAN "Build manpage doc" OFF) |
|
|
option(WITH_DOC_MAN "Build manpage doc" OFF) |
|
|
else () |
|
|
else () |
|
|
option(WITH_DOC_MAN "Build manpage doc" ON) |
|
|
option(WITH_DOC_MAN "Build manpage doc" ON) |
|
|
endif () |
|
|
endif () |
|
|
|
|
|
|
|
|
if (ASCIIDOC_EXECUTABLE-NOTFOUND) |
|
|
|
|
|
|
|
|
if (NOT ASCIIDOC_EXECUTABLE) |
|
|
option(WITH_DOC_HTML "Build html doc" OFF) |
|
|
option(WITH_DOC_HTML "Build html doc" OFF) |
|
|
else () |
|
|
else () |
|
|
option(WITH_DOC_HTML "Build html doc" ON) |
|
|
option(WITH_DOC_HTML "Build html doc" ON) |
|
|
endif () |
|
|
endif () |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# NOTE For brew user, we have to setup this env var. see `brew info asciidoc' |
|
|
# NOTE For brew user, we have to setup this env var. see `brew info asciidoc' |
|
|
set(XMLTO_ENV) |
|
|
set(XMLTO_ENV) |
|
|
set(XMLTO_CATALOG_DIR_MACOS /usr/local/etc/xml/catalog) |
|
|
set(XMLTO_CATALOG_DIR_MACOS /usr/local/etc/xml/catalog) |
|
|