]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
build: sync build scripts between client/libtest
authorViktor Szakats <commit@vsz.me>
Wed, 18 Jun 2025 08:26:42 +0000 (10:26 +0200)
committerViktor Szakats <commit@vsz.me>
Wed, 18 Jun 2025 09:33:54 +0000 (11:33 +0200)
Closes #17660

tests/client/CMakeLists.txt
tests/client/Makefile.am
tests/libtest/CMakeLists.txt

index 2521a28970a669c7e02ea66abe5304a8620f5e05..227dce769bf639cd335f0db3338340d37e2af333 100644 (file)
@@ -22,7 +22,7 @@
 #
 ###########################################################################
 
-# Get BUNDLE, BUNDLE_SRC, CURLX_SRCS, FIRSTFILES, TESTFILES variables
+# Get BUNDLE, BUNDLE_SRC, FIRSTFILES, CURLX_SRCS, TESTFILES variables
 curl_transform_makefile_inc("Makefile.inc" "${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
 include("${CMAKE_CURRENT_BINARY_DIR}/Makefile.inc.cmake")
 
index a8427e32bc44c9f8f731797e7c9bad315505123b..b9d2e5e141c19343715e5f424e2cd731e15d679c 100644 (file)
@@ -38,7 +38,7 @@ AM_CPPFLAGS = -I$(top_srcdir)/include        \
               -I$(top_srcdir)/lib/curlx      \
               -I$(srcdir)
 
-# Get BUNDLE, BUNDLE_SRC, CURLX_SRCS, FIRSTFILES, TESTFILES variables
+# Get BUNDLE, BUNDLE_SRC, FIRSTFILES, CURLX_SRCS, TESTFILES variables
 include Makefile.inc
 
 EXTRA_DIST = CMakeLists.txt $(FIRSTFILES) $(TESTFILES)
index dd1df40dc5291e0a2c6e7ca245eb6e2588e4c36e..2bd484b401cdc5dea25538fcaa6882093ac8354d 100644 (file)
@@ -49,7 +49,6 @@ add_custom_command(OUTPUT "${BUNDLE_SRC}"
 
 add_executable(libtests EXCLUDE_FROM_ALL "${BUNDLE_SRC}")
 add_dependencies(testdeps libtests)
-target_link_libraries(libtests ${LIB_SELECTED} ${CURL_LIBS})
 target_include_directories(libtests PRIVATE
   "${PROJECT_BINARY_DIR}/lib"            # for "curl_config.h"
   "${PROJECT_SOURCE_DIR}/lib"            # for "curl_setup.h"
@@ -58,5 +57,6 @@ target_include_directories(libtests PRIVATE
   "${PROJECT_SOURCE_DIR}/tests/libtest"  # to be able to build generated tests
   "${PROJECT_SOURCE_DIR}/tests/unit"     # for curlcheck.h
 )
+target_link_libraries(libtests ${LIB_SELECTED} ${CURL_LIBS})
 set_property(TARGET libtests APPEND PROPERTY COMPILE_DEFINITIONS "${CURL_DEBUG_MACROS}" "CURL_NO_OLDIES" "CURL_DISABLE_DEPRECATION")
 set_target_properties(libtests PROPERTIES OUTPUT_NAME "${BUNDLE}" PROJECT_LABEL "Test ${BUNDLE}" UNITY_BUILD OFF)