Only generate Doxyfile if generating docs.

Fixes #307.
This commit is contained in:
Camilla Berglund 2014-06-11 23:07:13 +02:00
parent cb9d194f86
commit 2f30d3e5a3

View File

@ -430,8 +430,10 @@ endif()
#-------------------------------------------------------------------- #--------------------------------------------------------------------
# Create generated files # Create generated files
#-------------------------------------------------------------------- #--------------------------------------------------------------------
if (GLFW_BUILD_DOCS)
configure_file(${GLFW_SOURCE_DIR}/docs/Doxyfile.in configure_file(${GLFW_SOURCE_DIR}/docs/Doxyfile.in
${GLFW_BINARY_DIR}/docs/Doxyfile @ONLY) ${GLFW_BINARY_DIR}/docs/Doxyfile @ONLY)
endif()
configure_file(${GLFW_SOURCE_DIR}/src/glfw_config.h.in configure_file(${GLFW_SOURCE_DIR}/src/glfw_config.h.in
${GLFW_BINARY_DIR}/src/glfw_config.h @ONLY) ${GLFW_BINARY_DIR}/src/glfw_config.h @ONLY)