mirror of
https://github.com/fmtlib/fmt.git
synced 2025-07-31 19:24:48 +02:00
Only add the doc target if doxygen and sphinx-build are available
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user