[doc] CMake: don't quit if txt2tags is not found
Don't return if txt2tags is not found, so that Doxygen-generated man pages can be built.
This commit is contained in:
parent
386c279f6c
commit
c169bcb5d2
|
@ -9,22 +9,22 @@
|
|||
# distributed along with this file, either separately or by replacing
|
||||
# this notice by the COPYRIGHT.t2t file's contents.
|
||||
|
||||
|
||||
set(MAN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/man")
|
||||
add_custom_target(doc ALL true)
|
||||
|
||||
|
||||
### txt2tags manual pages ###
|
||||
|
||||
# Make sure txt2tags is available
|
||||
find_package(Txt2tags)
|
||||
if (NOT TXT2TAGS_FOUND)
|
||||
message(WARNING
|
||||
"Dependency missing to generate OwlPS' documentation: txt2tags")
|
||||
return()
|
||||
endif()
|
||||
"Couldn't find txt2tags: disabling generation of txt2tags-based man pages")
|
||||
else()
|
||||
|
||||
|
||||
### Man pages ###
|
||||
|
||||
set(MAN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/man")
|
||||
set(PREPROC_MAN ./preproc-man.sh)
|
||||
|
||||
add_custom_target(doc ALL true)
|
||||
|
||||
function(add_manpage PAGENAME SECTION)
|
||||
set(OUTPUT_DIRECTORY "${MAN_OUTPUT_DIRECTORY}/man${SECTION}")
|
||||
set(SOURCE ${PAGENAME}.t2t)
|
||||
|
@ -59,6 +59,8 @@ add_manpage(owlps-client 1)
|
|||
add_manpage(owlps-listenerd 1)
|
||||
add_manpage(owlps-aggregatord 1)
|
||||
|
||||
endif()
|
||||
|
||||
|
||||
### Doxygen-generated man pages ###
|
||||
|
||||
|
|
Loading…
Reference in New Issue