diff options
author | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-31 19:09:52 (GMT) |
---|---|---|
committer | Stefan Radomski <radomski@tk.informatik.tu-darmstadt.de> | 2014-01-31 19:09:52 (GMT) |
commit | 3b321677e433dbc6f88c9e7faed0857022514efe (patch) | |
tree | 0e8dd00fdd6c0f351a74a855dfbbe1bd22d12434 /src/uscxml/plugins | |
parent | cd4d557248a14f5d28d9ce459ceb9398caab8e90 (diff) | |
download | uscxml-3b321677e433dbc6f88c9e7faed0857022514efe.zip uscxml-3b321677e433dbc6f88c9e7faed0857022514efe.tar.gz uscxml-3b321677e433dbc6f88c9e7faed0857022514efe.tar.bz2 |
Only build SMTP invoker with current curl
Diffstat (limited to 'src/uscxml/plugins')
-rw-r--r-- | src/uscxml/plugins/invoker/CMakeLists.txt | 32 |
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() |