summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2016-08-11 17:34:12 +0200
committerJulian Andres Klode <jak@debian.org>2016-08-11 19:50:48 +0200
commit7363c98f940f267b5c4186b6578ac79a98b501e0 (patch)
tree0275e00264f247de44cd1493bc75403d054e64c5
parent4171d6fe6887640fcf6fd3d6a56f7e0e35b7cb7d (diff)
CMake: Mark Doxygen as required and use DOXYGEN_EXECUTABLE
Seems like I missed that when adding doxygen support. Gbp-Dch: ignore
-rw-r--r--doc/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
index d54303deb..fb4a9a3a4 100644
--- a/doc/CMakeLists.txt
+++ b/doc/CMakeLists.txt
@@ -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
)