--- /home/despre_n/dl/GCCXMLMacros.cmake	2011-02-26 19:18:36.030826001 +0100
+++ cmake/modules/GCCXMLMacros.cmake	2011-02-26 16:49:27.538826000 +0100
@@ -39,7 +39,7 @@
 
   # Create gccxml gcc options configuration files.
   set(gccxml_gcc_options "${gccxml_dir}/gccxml-gcc-options.config")
-  if(${CMAKE_BINARY_DIR}/CmakeCache.txt IS_NEWER_THAN ${gccxml_gcc_options})
+  if(NOT EXISTS ${gccxml_gcc_options})
     message(STATUS "Regenerating GCCXML gcc options files.")
     file(WRITE ${gccxml_gcc_options} "# Generated file - DO NOT EDIT\n")
     # Add compile definitions.
@@ -82,9 +82,9 @@
            ${arg_OPTIONS}
            ${infile_location}
            "-fxml=${output_xml}"
-      DEPENDS ${infile_location} ${gccxml_gcc_options}
+      DEPENDS ${infile_location}
       WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
-      COMMENT "Generating interface information using GCCXML for '${infile}'"
+      COMMENT "Generating GCCXML interface file '${output_xml}'"
       )
     list(APPEND _output_files ${output_xml})
   endforeach(infile)
