Author: Gert Wollny <gewo@debian.org>
Description: Avoid doing some copying when docu is not build
 Since we don't build the docu, and the compresses js files 
 have been removed for copyright reasons (no source file), we avoid 
 doing anything in the Doxygen directory.
--- a/Utilities/Doxygen/CMakeLists.txt
+++ b/Utilities/Doxygen/CMakeLists.txt
@@ -5,6 +5,8 @@
 
 mark_as_advanced(BUILD_DOCUMENTATION)
 
+if (BUILD_DOCUMENTATION)
+  
 # -------------------------------------------------------------
 #
 # Generate Doxygen configuration file in all configuration file
@@ -115,8 +117,8 @@
 #
 # If workbox has changed version, we also need to update workbox-sw.prod*.js
 # referenced below
-file(COPY workbox-cli-config.js serviceWorker.js.in
-  DESTINATION ${ITK_BINARY_DIR}/Utilities/Doxygen/)
+#file(COPY workbox-cli-config.js serviceWorker.js.in
+#  DESTINATION ${ITK_BINARY_DIR}/Utilities/Doxygen/)
 
 configure_file(${ITK_SOURCE_DIR}/Utilities/Doxygen/doxygen.config.in
                ${ITK_BINARY_DIR}/Utilities/Doxygen/doxygen.config)
@@ -133,8 +135,6 @@
                ${ITK_BINARY_DIR}/single-doxygen.config)
 
 # -------------------------------------------------------------
-if (BUILD_DOCUMENTATION)
-
   find_package( LATEX )
 
   if( NOT LATEX_COMPILER )
