mirror of
https://github.com/curl/curl.git
synced 2026-04-11 12:01:42 +08:00
cmake: minor fixes to test targets after prev
- run tests-clang-tidy when building testbins.
- drop redundant build-certs dependency for test targets.
Already present via testdeps.
Follow-up to aae361242f #20708
Closes #20727
This commit is contained in:
parent
b56e103d4d
commit
2239879b74
@ -37,14 +37,14 @@ if(CURL_BUILD_EVERYTHING)
|
||||
set_target_properties(testbins PROPERTIES EXCLUDE_FROM_ALL FALSE)
|
||||
endif()
|
||||
|
||||
add_custom_target(testdeps)
|
||||
add_dependencies(testdeps "testbins")
|
||||
|
||||
if(CURL_CLANG_TIDY)
|
||||
add_custom_target(tests-clang-tidy)
|
||||
add_dependencies(testdeps tests-clang-tidy)
|
||||
add_dependencies(testbins tests-clang-tidy)
|
||||
endif()
|
||||
|
||||
add_custom_target(testdeps)
|
||||
add_dependencies(testdeps "testbins")
|
||||
|
||||
add_subdirectory(http)
|
||||
add_subdirectory(server)
|
||||
add_subdirectory(libtest)
|
||||
@ -66,7 +66,6 @@ function(curl_add_runtests _targetname _test_flags)
|
||||
list(APPEND _depends "${EXE_NAME}")
|
||||
endif()
|
||||
list(APPEND _depends "testdeps")
|
||||
list(APPEND _depends "build-certs")
|
||||
endif()
|
||||
set(_setenvs "")
|
||||
if(CMAKE_CONFIGURATION_TYPES)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user