diff --git a/CMakeLists.txt b/CMakeLists.txt
index f2136bc770298c39dfd47b9ca5e4c232460e7521..02e52a2c0d3992344142543b46a9aa16bb756648 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -94,12 +94,11 @@ if (CMAKE_BUILD_TYPE STREQUAL Coverage)
     COMMAND ${LCOV_BIN_DIR}/lcov --remove raw-coverage.info "*/usr/*" --output-file coverage2.info
     COMMAND ${LCOV_BIN_DIR}/lcov --remove coverage2.info "*/ThirdParty/*" --output-file coverage.info
     COMMAND ${CMAKE_COMMAND} -E remove coverage2.info
-    DEPENDS raw-coverage.info
-  )
+    DEPENDS raw-coverage.info)
+  # generate html report
   add_custom_command(OUTPUT coverage-report
     COMMAND ${LCOV_BIN_DIR}/genhtml coverage.info -o coverage-report
-    DEPENDS coverage.info
-  )
+    DEPENDS coverage.info)
   add_custom_target(coverage DEPENDS coverage-report)
 endif ()