From kde-commits Mon Oct 05 11:27:00 2009 From: Christophe Giboudeaux Date: Mon, 05 Oct 2009 11:27:00 +0000 To: kde-commits Subject: KDE/kdepim Message-Id: <1254742020.275717.6658.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=125474202609867 SVN commit 1031526 by cgiboudeaux: Add the KMAIL_SUPPORTED definition only if KMail is compiled. M +5 -2 CMakeLists.txt --- trunk/KDE/kdepim/CMakeLists.txt #1031525:1031526 @@ -183,8 +183,11 @@ # The following components depend on QGpgME. macro_optional_add_subdirectory(kmail) # If kmail is compiled, KMAIL_SUPPORTED is true (used in several places) - macro_bool_to_01(BUILD_kmail KMAIL_SUPPORTED) - add_definitions(-DKMAIL_SUPPORTED) + if(BUILD_kmail) + set(KMAIL_SUPPORTED TRUE) + add_definitions(-DKMAIL_SUPPORTED) + endif(BUILD_kmail) + macro_optional_add_subdirectory(kmailcvt) macro_optional_add_subdirectory(ksendemail) macro_optional_add_subdirectory(korganizer)