From e64853b91ea1b292c825e7d85a01306a4cddc3fa Mon Sep 17 00:00:00 2001 From: chain Date: Mon, 12 Nov 2012 22:50:44 +0100 Subject: [PATCH] Make SMSTools3 plugin optional (by using ENABLE_SMSTOOLS3) --- CMakeLists.txt | 3 ++- backends/CMakeLists.txt | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0147cf25..6ded9c07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,6 +22,7 @@ option(ENABLE_PQXX "Build with Postgres supoort" ON) #option(ENABLE_FROTZ "Build Frotz plugin" ON) option(ENABLE_IRC "Build IRC plugin" ON) option(ENABLE_PURPLE "Build Libpurple plugin" ON) +option(ENABLE_SMSTOOLS3 "Build SMSTools3 plugin" ON) option(ENABLE_SKYPE "Build Skype plugin" ON) option(ENABLE_TWITTER "Build Twitter plugin" ON) option(ENABLE_YAHOO2 "Build Libyahoo2 plugin" ON) @@ -361,7 +362,7 @@ if (PROTOBUF_FOUND) if(ENABLE_SMSTOOLS3) message("SMSTools3 plugin : yes") else() - message("SMSTools3 plugin : no") + message("SMSTools3 plugin : no (user disabled)") endif() if(${LIBDBUSGLIB_FOUND}) message("Skype plugin : yes") diff --git a/backends/CMakeLists.txt b/backends/CMakeLists.txt index 1306f711..fb4ca0e2 100644 --- a/backends/CMakeLists.txt +++ b/backends/CMakeLists.txt @@ -13,7 +13,9 @@ if (PROTOBUF_FOUND) if (NOT WIN32) - ADD_SUBDIRECTORY(smstools3) + if(ENABLE_SMSTOOLS3) + ADD_SUBDIRECTORY(smstools3) + endif() ADD_SUBDIRECTORY(frotz) if(YAHOO2_FOUND) ADD_SUBDIRECTORY(libyahoo2)