[cmake] fix build without documentation
@@ -100,8 +100,6 @@ macro(finalize_doc)
add_dependencies(doxyrest doxygen)
add_dependencies(html doxyrest)
endif()
- endif()
-
# --- Generates conf.py, to describe sphinx setup ---
# !! Should be call after doxygen setup
# to have a propre DOXYGEN_INPUT value.
@@ -111,6 +109,8 @@ macro(finalize_doc)
configure_file(
"${DOXY_CONFIG}"
"${CMAKE_BINARY_DIR}/docs/sphinx/Doxyfile" @ONLY)
+ endif()
+
endmacro()
