mirror of
https://github.com/fmtlib/fmt.git
synced 2024-11-10 05:10:05 +00:00
Only add the doc target if doxygen and sphinx-build are available
This commit is contained in:
parent
90bc8dd3ed
commit
b4eef59100
@ -1,4 +1,11 @@
|
||||
foreach (program doxygen sphinx-build)
|
||||
find_program(${program} ${program})
|
||||
if (NOT ${program})
|
||||
message(STATUS "Target 'doc' disabled (requires ${program})")
|
||||
return ()
|
||||
endif ()
|
||||
endforeach ()
|
||||
|
||||
add_custom_target(doc
|
||||
COMMAND doxygen
|
||||
COMMAND rm -rf html
|
||||
COMMAND sphinx-build -b html . html)
|
||||
COMMAND ${doxygen}
|
||||
COMMAND ${sphinx-build} -b html . html)
|
||||
|
Loading…
Reference in New Issue
Block a user