From: Michael Wallner Date: Tue, 18 Feb 2020 12:53:16 +0000 (+0100) Subject: tests: wrap testsasl with LIBMEMCACHED_WITH_SASL_SUPPORT X-Git-Tag: post_cmake~6 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=4cb3f67d6c3530897206739bf1f13e5137339636;p=awesomized%2Flibmemcached tests: wrap testsasl with LIBMEMCACHED_WITH_SASL_SUPPORT --- diff --git a/tests/libmemcached-1.0/CMakeLists.txt b/tests/libmemcached-1.0/CMakeLists.txt index a92b50fe..fe7dc133 100644 --- a/tests/libmemcached-1.0/CMakeLists.txt +++ b/tests/libmemcached-1.0/CMakeLists.txt @@ -3,32 +3,34 @@ add_executable(internals internals.cc string.cc) target_link_libraries(internals PRIVATE libtest libmemcachedinternal Threads::Threads) add_test(internals internals) -add_executable(testsasl - basic.cc - debug.cc - deprecated.cc - error_conditions.cc - ketama.cc - namespace.cc - parser.cc - pool.cc - print.cc - replication.cc - sasl.cc - virtual_buckets.cc - callback_counter.cc - fetch_all_results.cc - generate.cc - ) -target_link_libraries(testsasl PRIVATE - libclient_utilities - libhashkit - libmemcached - libmemcachedutil - libtest - Threads::Threads - ) -add_test(testsasl testsasl) +if(LIBMEMCACHED_WITH_SASL_SUPPORT) + add_executable(testsasl + basic.cc + debug.cc + deprecated.cc + error_conditions.cc + ketama.cc + namespace.cc + parser.cc + pool.cc + print.cc + replication.cc + sasl.cc + virtual_buckets.cc + callback_counter.cc + fetch_all_results.cc + generate.cc + ) + target_link_libraries(testsasl PRIVATE + libclient_utilities + libhashkit + libmemcached + libmemcachedutil + libtest + Threads::Threads + ) + add_test(testsasl testsasl) +endif() add_executable(atomsmasher atomsmasher.cc) add_executable(testplus plus.cpp)