File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,12 @@ Commands I am using for building the RPM:
6161 make clean && make
6262## Other build options
6363
64+ ### `` -DBUILD_DOC_C=OFF ``
65+
66+ Build C API documentation (Default: ON)
67+
68+ Disable building of C API documentation, which requires doxygen to be present.
69+
6470### `` -DENABLE_LEGACY_WEAKDEPS=ON ``
6571
6672Enable legacy SUSE/Mageia/Mandriva weakdeps support (Default: ON)
Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ ADD_SUBDIRECTORY (python)
33ADD_CUSTOM_TARGET (doc )
44ADD_DEPENDENCIES (doc doc -python)
55
6- find_package (Doxygen)
7- if (DOXYGEN_FOUND)
6+ option (BUILD_DOC_C "Build C API documentation" ON )
7+ if (BUILD_DOC_C)
8+ find_package (Doxygen REQUIRED)
89 CONFIGURE_FILE ("Doxyfile.in.in" "${CMAKE_CURRENT_BINARY_DIR} /Doxyfile.in" @ONLY)
910 add_custom_target (doc -c
1011 ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR} /Doxyfile.in
1112 COMMENT "Building C API documentation with Doxygen" VERBATIM )
1213 ADD_DEPENDENCIES (doc doc -c)
13- endif (DOXYGEN_FOUND )
14+ endif (BUILD_DOC_C )
1415
1516IF (CREATEREPO_C_INSTALL_MANPAGES)
1617 INSTALL (FILES createrepo_c.8 mergerepo_c.8 modifyrepo_c.8 sqliterepo_c.8
You can’t perform that action at this time.
0 commit comments