From 7273ad34c3308a3871af939dc3f1ea28f039693a Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Sat, 28 Jun 2025 01:21:35 +0200 Subject: [PATCH] cleanup-3 --- tests/server/CMakeLists.txt | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tests/server/CMakeLists.txt b/tests/server/CMakeLists.txt index 30a615b30a..8fff5d4fee 100644 --- a/tests/server/CMakeLists.txt +++ b/tests/server/CMakeLists.txt @@ -42,14 +42,13 @@ target_include_directories(${BUNDLE} PRIVATE "${PROJECT_SOURCE_DIR}/lib" # for "curl_setup.h", curlx "${CMAKE_CURRENT_SOURCE_DIR}" # for the generated bundle source to find included test sources ) -target_compile_definitions(TARGET ${BUNDLE} PRIVATE "WITHOUT_LIBCURL" "CURL_NO_OLDIES" - # Test servers simply are standalone programs that do not use libcurl - # library. For convenience and to ease portability of these servers, - # some source code files from the libcurl subdirectory are also used - # to build the servers. In order to achieve proper linkage of these - # files on Windows targets it is necessary to build the test servers - # with CURL_STATICLIB defined, independently of how libcurl is built. - "$<$:CURL_STATICLIB>") +# Test servers simply are standalone programs that do not use libcurl +# library. For convenience and to ease portability of these servers, +# some source code files from the libcurl subdirectory are also used +# to build the servers. In order to achieve proper linkage of these +# files on Windows targets it is necessary to build the test servers +# with CURL_STATICLIB defined, independently of how libcurl is built. +target_compile_definitions(TARGET ${BUNDLE} PRIVATE "WITHOUT_LIBCURL" "CURL_NO_OLDIES" "$<$:CURL_STATICLIB>") set_target_properties(${BUNDLE} PROPERTIES OUTPUT_NAME "${BUNDLE}" PROJECT_LABEL "Test ${BUNDLE}" UNITY_BUILD OFF C_CLANG_TIDY "") curl_add_clang_tidy_test_target("${BUNDLE}-clang-tidy" ${BUNDLE} ${FIRST_C} ${UTILS_C} ${TESTS_C})