From 5717b69f3585ad9102d47bdef32e2ac83bd18b83 Mon Sep 17 00:00:00 2001 From: Manuel Nickschas Date: Mon, 2 Apr 2012 01:13:30 +0200 Subject: [PATCH] Fix build error if QCA2 isn't around --- src/uisupport/CMakeLists.txt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/uisupport/CMakeLists.txt b/src/uisupport/CMakeLists.txt index 934e3fdd..f3b7cad2 100644 --- a/src/uisupport/CMakeLists.txt +++ b/src/uisupport/CMakeLists.txt @@ -84,8 +84,11 @@ endif(HAVE_KDE) 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}) -- 2.20.1