Fixed build issues when disabling filesystem features.
This commit is contained in:
parent
07ae82f17a
commit
d13e1133f0
@ -1073,6 +1073,11 @@ IF(VMIME_HAVE_MESSAGING_FEATURES AND VMIME_HAVE_MESSAGING_PROTO_MAILDIR AND NOT
|
||||
MESSAGE(FATAL_ERROR "Maildir protocol requires file-system support (VMIME_HAVE_FILESYSTEM_FEATURES must be set to ON).")
|
||||
ENDIF()
|
||||
|
||||
# Sendmail protocol is available only if file-system features are enabled
|
||||
IF(VMIME_HAVE_MESSAGING_FEATURES AND VMIME_HAVE_MESSAGING_PROTO_SENDMAIL AND NOT VMIME_HAVE_FILESYSTEM_FEATURES)
|
||||
MESSAGE(FATAL_ERROR "Sendmail protocol requires file-system support (VMIME_HAVE_FILESYSTEM_FEATURES must be set to ON).")
|
||||
ENDIF()
|
||||
|
||||
# Path to 'sendmail' must be specified if Sendmail protocol is enabled
|
||||
IF(VMIME_HAVE_MESSAGING_PROTO_SENDMAIL)
|
||||
IF(NOT VMIME_SENDMAIL_PATH OR VMIME_SENDMAIL_PATH STREQUAL "")
|
||||
|
@ -21,6 +21,12 @@
|
||||
// the GNU General Public License cover the whole combination.
|
||||
//
|
||||
|
||||
#include "vmime/config.hpp"
|
||||
|
||||
|
||||
#if VMIME_HAVE_FILESYSTEM_FEATURES
|
||||
|
||||
|
||||
#include "vmime/fileContentHandler.hpp"
|
||||
|
||||
|
||||
@ -79,3 +85,6 @@ void fileContentHandler::setData
|
||||
|
||||
|
||||
} // vmime
|
||||
|
||||
|
||||
#endif // VMIME_HAVE_FILESYSTEM_FEATURES
|
||||
|
@ -25,6 +25,12 @@
|
||||
#define VMIME_FILECONTENTHANDLER_HPP_INCLUDED
|
||||
|
||||
|
||||
#include "vmime/config.hpp"
|
||||
|
||||
|
||||
#if VMIME_HAVE_FILESYSTEM_FEATURES
|
||||
|
||||
|
||||
#include "vmime/streamContentHandler.hpp"
|
||||
#include "vmime/utility/file.hpp"
|
||||
|
||||
@ -90,4 +96,7 @@ private:
|
||||
} // vmime
|
||||
|
||||
|
||||
#endif // VMIME_HAVE_FILESYSTEM_FEATURES
|
||||
|
||||
|
||||
#endif // VMIME_FILECONTENTHANDLER_HPP_INCLUDED
|
||||
|
Loading…
Reference in New Issue
Block a user