mirror of
https://github.com/curl/curl.git
synced 2026-06-06 14:44:16 +03:00
cmake: add _CURL_SKIP_BUILD_CERTS internal option
To disable automatically building certs with the testdeps target. To improve performance when testing builds.
This commit is contained in:
parent
72b2f990cf
commit
674f2a37ec
1 changed files with 5 additions and 1 deletions
|
|
@ -31,7 +31,11 @@ add_custom_command(OUTPUT ${GENERATEDCERTS}
|
|||
VERBATIM
|
||||
)
|
||||
add_custom_target(build-certs DEPENDS ${GENERATEDCERTS})
|
||||
add_dependencies(testdeps build-certs)
|
||||
|
||||
option(_CURL_SKIP_BUILD_CERTS "Skip building certs with testdeps" OFF) # Internal option to increase perf for build tests
|
||||
if(NOT _CURL_SKIP_BUILD_CERTS)
|
||||
add_dependencies(testdeps build-certs)
|
||||
endif()
|
||||
|
||||
add_custom_target(clean-certs
|
||||
COMMAND ${CMAKE_COMMAND} -E remove ${GENERATEDCERTS}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue