Browse Source

Revert back logic to determine when the HTML help compiler is found.

Yao Wei Tjong 姚伟忠 10 years ago
parent
commit
174feacccc
1 changed files with 1 additions and 4 deletions
  1. 1 4
      Docs/CMakeLists.txt

+ 1 - 4
Docs/CMakeLists.txt

@@ -71,10 +71,7 @@ if (DOXYGEN_FOUND)      # When DOT is not found, the documentation build should
         endforeach ()
         if (MSVC_HELP)
             find_package (HTMLHelp)
-            find_package_handle_standard_args (HTMLHelp REQUIRED_VARS HTML_HELP_COMPILER HTML_HELP_INCLUDE_PATH HTML_HELP_LIBRARY)
-            if (NOT HTMLHelp_FOUND)     # Only consider it as found when all the required variables are found
-                unset (HTML_HELP_COMPILER)
-            endif ()
+            find_package_handle_standard_args (HTMLHelp REQUIRED_VARS HTML_HELP_COMPILER)
         endif ()
         configure_file (${CMAKE_CURRENT_SOURCE_DIR}/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/generated/Doxyfile)
     endif ()