]> git.saurik.com Git - apt.git/commitdiff
CMake: Mark Doxygen as required and use DOXYGEN_EXECUTABLE
authorJulian Andres Klode <jak@debian.org>
Thu, 11 Aug 2016 15:34:12 +0000 (17:34 +0200)
committerJulian Andres Klode <jak@debian.org>
Thu, 11 Aug 2016 17:50:48 +0000 (19:50 +0200)
Seems like I missed that when adding doxygen support.

Gbp-Dch: ignore

doc/CMakeLists.txt

index d54303debda9bdacfc269ce5d8ecb7612d0ae4f3..fb4a9a3a489544bec61a2cf2a1982b0fafbdf825 100644 (file)
@@ -39,14 +39,14 @@ add_docbook(libapt-pkg-doc HTML TEXT ALL
     DEPENDS ${ENTITIES}
 )
 
-find_package(Doxygen)
+find_package(Doxygen REQUIRED)
 
 file(GLOB_RECURSE apt_pkg "../apt-pkg/*.h" "../apt-pkg/*.cc")
 configure_file(Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile)
 
 add_custom_command(
     OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
-    COMMAND doxygen ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
+    COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
     COMMAND ${CMAKE_COMMAND} -E touch ${CMAKE_CURRENT_BINARY_DIR}/doxygen.stamp
     DEPENDS ${apt_pkg} ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile
 )