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 | |
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')
-rw-r--r-- | src/bindings/CMakeLists.txt | 4 | ||||
-rw-r--r-- | src/uscxml/plugins/invoker/CMakeLists.txt | 32 |
2 files changed, 19 insertions, 17 deletions
diff --git a/src/bindings/CMakeLists.txt b/src/bindings/CMakeLists.txt index 82ad509..b1f2429 100644 --- a/src/bindings/CMakeLists.txt +++ b/src/bindings/CMakeLists.txt @@ -6,9 +6,9 @@ if (SWIG_FOUND) add_subdirectory(swig/java) add_subdirectory(swig/php) else() - message("SWIG version 2.0.5 is required, found ${SWIG_VERSION} - skipping java wrapper generation") + message(STATUS "SWIG version 2.0.5 is required, found ${SWIG_VERSION} - skipping java wrapper generation") endif() else() - message("SWIG not found - skipping wrapper generation") + message(STATUS "SWIG not found - skipping wrapper generation") endif() set(USCXML_LANGUAGE_BINDINGS ${USCXML_LANGUAGE_BINDINGS} PARENT_SCOPE) 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() |