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,6 +240,7 @@ PRINT_CEF_CONFIG()
|
||||||
# Define the API documentation target.
|
# Define the API documentation target.
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile")
|
||||||
find_package(Doxygen)
|
find_package(Doxygen)
|
||||||
if(DOXYGEN_FOUND)
|
if(DOXYGEN_FOUND)
|
||||||
add_custom_target(apidocs ALL
|
add_custom_target(apidocs ALL
|
||||||
|
@ -253,3 +254,4 @@ if(DOXYGEN_FOUND)
|
||||||
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