From e64853b91ea1b292c825e7d85a01306a4cddc3fa 2012-11-12 22:50:44 From: chain Date: 2012-11-12 22:50:44 Subject: [PATCH] Make SMSTools3 plugin optional (by using ENABLE_SMSTOOLS3) --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 0147cf25178f60a836daacc4be040624ea117d2a..6ded9c072ef40a2e8f36ebbb8605c71235f59e56 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 1306f711174b61141d31497660eacc413ad27d11..fb4ca0e200338b0b58043a7f270baca6b3c521c6 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)