summaryrefslogtreecommitdiffstats
path: root/src/uscxml/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'src/uscxml/plugins')
-rw-r--r--src/uscxml/plugins/invoker/CMakeLists.txt32
1 files changed, 17 insertions, 15 deletions
diff --git a/src/uscxml/plugins/invoker/CMakeLists.txt b/src/uscxml/plugins/invoker/CMakeLists.txt
index aec337b..fe86e7c 100644
--- a/src/uscxml/plugins/invoker/CMakeLists.txt
+++ b/src/uscxml/plugins/invoker/CMakeLists.txt
@@ -119,21 +119,23 @@ endif()
# SMTP invoker via curl
-set(USCXML_INVOKERS "smtp ${USCXML_INVOKERS}")
-file(GLOB_RECURSE SMTP_INVOKER
- smtp/*.cpp
- smtp/*.h
-)
-if (BUILD_AS_PLUGINS)
- source_group("" FILES SMTP_INVOKER)
- add_library(
- invoker_smtp SHARED
- ${SMTP_INVOKER}
- "../Plugins.cpp")
- target_link_libraries(invoker_smtp uscxml)
- set_target_properties(invoker_smtp PROPERTIES FOLDER "Plugin Invoker")
-else()
- list (APPEND USCXML_FILES ${SMTP_INVOKER})
+if (CURL_HAS_SMTP)
+ set(USCXML_INVOKERS "smtp ${USCXML_INVOKERS}")
+ file(GLOB_RECURSE SMTP_INVOKER
+ smtp/*.cpp
+ smtp/*.h
+ )
+ if (BUILD_AS_PLUGINS)
+ source_group("" FILES SMTP_INVOKER)
+ add_library(
+ invoker_smtp SHARED
+ ${SMTP_INVOKER}
+ "../Plugins.cpp")
+ target_link_libraries(invoker_smtp uscxml)
+ set_target_properties(invoker_smtp PROPERTIES FOLDER "Plugin Invoker")
+ else()
+ list (APPEND USCXML_FILES ${SMTP_INVOKER})
+ endif()
endif()