This is an automated email from the ASF dual-hosted git repository. tschoening pushed a commit to branch ghpr_14_replace-ant-build-with-cmake in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git
commit cd4a4552ca5c8e6f8ea52aec4d2e07814a3b6e42 Author: Stephen Webb <[email protected]> AuthorDate: Fri Feb 7 10:49:40 2020 +1100 Only include smtpappendertestcase when libesmtp is available --- src/test/cpp/net/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/cpp/net/CMakeLists.txt b/src/test/cpp/net/CMakeLists.txt index 6bc5847..888dec6 100644 --- a/src/test/cpp/net/CMakeLists.txt +++ b/src/test/cpp/net/CMakeLists.txt @@ -1,7 +1,6 @@ # Tests defined in this directory set(NET_TESTS - smtpappendertestcase socketappendertestcase sockethubappendertestcase socketservertestcase @@ -9,6 +8,9 @@ set(NET_TESTS telnetappendertestcase xmlsocketappendertestcase ) +if(HAS_LIBESMPT) + list(APPEND NET_TESTS smtpappendertestcase) +endif(HAS_LIBESMPT) foreach(fileName IN LISTS NET_TESTS) add_executable(${fileName} "${fileName}.cpp") endforeach()
