From 2f30d3e5a39fe141b264abd052b933404a7a6ac9 Mon Sep 17 00:00:00 2001 From: Camilla Berglund Date: Wed, 11 Jun 2014 23:07:13 +0200 Subject: [PATCH] Only generate Doxyfile if generating docs. Fixes #307. --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 743e72d1..4d5c7254 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -430,8 +430,10 @@ endif() #-------------------------------------------------------------------- # Create generated files #-------------------------------------------------------------------- -configure_file(${GLFW_SOURCE_DIR}/docs/Doxyfile.in - ${GLFW_BINARY_DIR}/docs/Doxyfile @ONLY) +if (GLFW_BUILD_DOCS) + configure_file(${GLFW_SOURCE_DIR}/docs/Doxyfile.in + ${GLFW_BINARY_DIR}/docs/Doxyfile @ONLY) +endif() configure_file(${GLFW_SOURCE_DIR}/src/glfw_config.h.in ${GLFW_BINARY_DIR}/src/glfw_config.h @ONLY)