--- src/doc/CMakeLists.txt.orig	2015-01-05 21:49:06.000000000 -0800
+++ src/doc/CMakeLists.txt	2015-01-05 21:49:20.000000000 -0800
@@ -2,6 +2,7 @@
 add_custom_target(doc)
 
 # Add targets to generate API documentation with Doxygen if it's installed
+if(NOT QT_ONLY)
 find_package(Doxygen)
 if(DOXYGEN_FOUND)
   configure_file(doxygen.echolib.in doxygen.echolib @ONLY)
@@ -32,5 +33,6 @@
     "echolib;async"
     )
 endif(DOXYGEN_FOUND)
+endif(NOT QT_ONLY)
 
 add_subdirectory(man)
