Fix build error if QCA2 isn't around
authorManuel Nickschas <sputnick@quassel-irc.org>
Sun, 1 Apr 2012 23:13:30 +0000 (01:13 +0200)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sun, 1 Apr 2012 23:13:30 +0000 (01:13 +0200)
src/uisupport/CMakeLists.txt

index 934e3fd..f3b7cad 100644 (file)
@@ -84,8 +84,11 @@ endif(HAVE_KDE)
 
 include_directories(${CMAKE_SOURCE_DIR}/src/common
                     ${CMAKE_SOURCE_DIR}/src/client
 
 include_directories(${CMAKE_SOURCE_DIR}/src/common
                     ${CMAKE_SOURCE_DIR}/src/client
-                    ${QUASSEL_QT_INCLUDES}
-                    ${QCA2_INCLUDE_DIR})
+                    ${QUASSEL_QT_INCLUDES})
+
+if(HAVE_QCA2)
+  include_directories(${QCA2_INCLUDE_DIR})
+endif(HAVE_QCA2)
 
 if(NOT WITH_QT5)
   qt4_wrap_cpp(MOC ${MOC_HDRS})
 
 if(NOT WITH_QT5)
   qt4_wrap_cpp(MOC ${MOC_HDRS})