diff options
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() |