From 8d64683b322c4a2065e2d58c133faa01a8254923 Mon Sep 17 00:00:00 2001 From: Crunkle Date: Tue, 14 Jan 2020 00:49:04 +0000 Subject: [PATCH] Fix docs install condition --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d8719da3..eaae85a82 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -351,7 +351,7 @@ if (GLFW_INSTALL) install(FILES "${GLFW_BINARY_DIR}/src/glfw3.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig") - if (GLFW_BUILD_DOCS) + if (DOXYGEN_FOUND AND GLFW_BUILD_DOCS) install(DIRECTORY "${GLFW_BINARY_DIR}/docs/html" DESTINATION "${CMAKE_INSTALL_DOCDIR}") endif()