From fbfcbf69ad1f89aced564a2641a6d518c880432e Mon Sep 17 00:00:00 2001 From: HanzZ Date: Fri, 20 May 2011 10:31:11 +0200 Subject: [PATCH] better cmake --- backends/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backends/CMakeLists.txt b/backends/CMakeLists.txt index d005be0b..9982d868 100644 --- a/backends/CMakeLists.txt +++ b/backends/CMakeLists.txt @@ -1,5 +1,7 @@ if (PROTOBUF_FOUND) - ADD_SUBDIRECTORY(libpurple) + if ( PURPLE_LIBRARY AND PURPLE_INCLUDE_DIR ) + ADD_SUBDIRECTORY(libpurple) + endif() if (IRC_FOUND) ADD_SUBDIRECTORY(libircclient-qt)