cmake: Skip docs generation if the Doxyfile is missing
The Doxyfile is not included with minimal distributions.
This commit is contained in:
parent
47798d3dbf
commit
7c19cb90e1
|
@ -240,8 +240,9 @@ PRINT_CEF_CONFIG()
|
||||||
# Define the API documentation target.
|
# Define the API documentation target.
|
||||||
#
|
#
|
||||||
|
|
||||||
find_package(Doxygen)
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile")
|
||||||
if(DOXYGEN_FOUND)
|
find_package(Doxygen)
|
||||||
|
if(DOXYGEN_FOUND)
|
||||||
add_custom_target(apidocs ALL
|
add_custom_target(apidocs ALL
|
||||||
# Generate documentation in the docs/html directory.
|
# Generate documentation in the docs/html directory.
|
||||||
COMMAND "${DOXYGEN_EXECUTABLE}" Doxyfile
|
COMMAND "${DOXYGEN_EXECUTABLE}" Doxyfile
|
||||||
|
@ -250,6 +251,7 @@ if(DOXYGEN_FOUND)
|
||||||
WORKING_DIRECTORY "${CEF_ROOT}"
|
WORKING_DIRECTORY "${CEF_ROOT}"
|
||||||
COMMENT "Generating API documentation with Doxygen..."
|
COMMENT "Generating API documentation with Doxygen..."
|
||||||
VERBATIM )
|
VERBATIM )
|
||||||
else()
|
else()
|
||||||
message(WARNING "Doxygen must be installed to generate API documentation.")
|
message(WARNING "Doxygen must be installed to generate API documentation.")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
Loading…
Reference in New Issue