f9cb51
diff -up cmake-2.8.12/Modules/UseQt4.cmake.qtdeps cmake-2.8.12/Modules/UseQt4.cmake
f9cb51
--- cmake-2.8.12/Modules/UseQt4.cmake.qtdeps	2013-10-07 09:31:00.000000000 -0600
f9cb51
+++ cmake-2.8.12/Modules/UseQt4.cmake	2013-10-23 10:39:14.763568925 -0600
f9cb51
@@ -56,39 +56,13 @@ if (QT_USE_QT3SUPPORT)
f9cb51
   add_definitions(-DQT3_SUPPORT)
f9cb51
 endif ()
f9cb51
 
f9cb51
-# list dependent modules, so dependent libraries are added
f9cb51
-set(QT_QT3SUPPORT_MODULE_DEPENDS QTGUI QTSQL QTXML QTNETWORK QTCORE)
f9cb51
-set(QT_QTSVG_MODULE_DEPENDS QTGUI QTXML QTCORE)
f9cb51
-set(QT_QTUITOOLS_MODULE_DEPENDS QTGUI QTXML QTCORE)
f9cb51
-set(QT_QTHELP_MODULE_DEPENDS QTGUI QTSQL QTXML QTNETWORK QTCORE)
f9cb51
-if(QT_QTDBUS_FOUND)
f9cb51
-  set(QT_PHONON_MODULE_DEPENDS QTGUI QTDBUS QTCORE)
f9cb51
-else()
f9cb51
-  set(QT_PHONON_MODULE_DEPENDS QTGUI QTCORE)
f9cb51
-endif()
f9cb51
-set(QT_QTDBUS_MODULE_DEPENDS QTXML QTCORE)
f9cb51
-set(QT_QTXMLPATTERNS_MODULE_DEPENDS QTNETWORK QTCORE)
f9cb51
-set(QT_QAXCONTAINER_MODULE_DEPENDS QTGUI QTCORE)
f9cb51
-set(QT_QAXSERVER_MODULE_DEPENDS QTGUI QTCORE)
f9cb51
-set(QT_QTSCRIPTTOOLS_MODULE_DEPENDS QTGUI QTCORE)
f9cb51
-set(QT_QTWEBKIT_MODULE_DEPENDS QTXMLPATTERNS QTGUI QTCORE)
f9cb51
-set(QT_QTDECLARATIVE_MODULE_DEPENDS QTSCRIPT QTSVG QTSQL QTXMLPATTERNS QTGUI QTCORE)
f9cb51
-set(QT_QTMULTIMEDIA_MODULE_DEPENDS QTGUI QTCORE)
f9cb51
-set(QT_QTOPENGL_MODULE_DEPENDS QTGUI QTCORE)
f9cb51
-set(QT_QTSCRIPT_MODULE_DEPENDS QTCORE)
f9cb51
-set(QT_QTGUI_MODULE_DEPENDS QTCORE)
f9cb51
-set(QT_QTTEST_MODULE_DEPENDS QTCORE)
f9cb51
-set(QT_QTXML_MODULE_DEPENDS QTCORE)
f9cb51
-set(QT_QTSQL_MODULE_DEPENDS QTCORE)
f9cb51
-set(QT_QTNETWORK_MODULE_DEPENDS QTCORE)
f9cb51
-
f9cb51
 # Qt modules  (in order of dependence)
f9cb51
 foreach(module QT3SUPPORT QTOPENGL QTASSISTANT QTDESIGNER QTMOTIF QTNSPLUGIN
f9cb51
                QAXSERVER QAXCONTAINER QTDECLARATIVE QTSCRIPT QTSVG QTUITOOLS QTHELP
f9cb51
                QTWEBKIT PHONON QTSCRIPTTOOLS QTMULTIMEDIA QTXMLPATTERNS QTGUI QTTEST
f9cb51
                QTDBUS QTXML QTSQL QTNETWORK QTCORE)
f9cb51
 
f9cb51
-  if (QT_USE_${module} OR QT_USE_${module}_DEPENDS)
f9cb51
+  if (QT_USE_${module})
f9cb51
     if (QT_${module}_FOUND)
f9cb51
       if(QT_USE_${module})
f9cb51
         string(REPLACE "QT" "" qt_module_def "${module}")
f9cb51
@@ -104,9 +78,6 @@ foreach(module QT3SUPPORT QTOPENGL QTASS
f9cb51
       if(QT_IS_STATIC)
f9cb51
         set(QT_LIBRARIES ${QT_LIBRARIES} ${QT_${module}_LIB_DEPENDENCIES})
f9cb51
       endif()
f9cb51
-      foreach(depend_module ${QT_${module}_MODULE_DEPENDS})
f9cb51
-        set(QT_USE_${depend_module}_DEPENDS 1)
f9cb51
-      endforeach()
f9cb51
     else ()
f9cb51
       message("Qt ${module} library not found.")
f9cb51
     endif ()