mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:41:40 +03:00
build: disable typecheck via the command-line instead of curl_config.h
To make it apply to examples. This in turn makes analyzers run quicker
and with fewer false positives.
It's a special disable option, having its effect via `curl/curl.h`.
Bug: https://github.com/curl/curl/pull/20649#issuecomment-3934885021
Follow-up to 9e6f1c5efb #19637
Closes #20650
This commit is contained in:
parent
1eb79cf54b
commit
4b4637a445
4 changed files with 18 additions and 8 deletions
|
|
@ -504,6 +504,11 @@ mark_as_advanced(CURL_DISABLE_TYPECHECK)
|
|||
option(CURL_DISABLE_VERBOSE_STRINGS "Disable verbose strings" OFF)
|
||||
mark_as_advanced(CURL_DISABLE_VERBOSE_STRINGS)
|
||||
|
||||
if(CURL_DISABLE_TYPECHECK)
|
||||
# Set it via the command-line to make it apply to examples also.
|
||||
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS "CURL_DISABLE_TYPECHECK")
|
||||
endif()
|
||||
|
||||
if(CURL_DISABLE_HTTP)
|
||||
set(CURL_DISABLE_ALTSVC ON)
|
||||
set(CURL_DISABLE_HSTS ON)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue