mirror of
https://github.com/curl/curl.git
synced 2026-04-14 18:11:40 +03:00
cmake: set found status to OFF when not found (for compression deps)
This fixes curl using libraries if `CURL_{BROTLI|ZLIB|ZSTD}` is set to
`OFF` but the library was found in a parent project that includes curl.
Closes #20147
This commit is contained in:
parent
8292820b73
commit
27ffb81a58
1 changed files with 4 additions and 0 deletions
|
|
@ -74,6 +74,10 @@ macro(curl_dependency_option _option_name _find_name _desc_name)
|
|||
find_package(${_find_name})
|
||||
elseif(${_option_name})
|
||||
find_package(${_find_name} REQUIRED)
|
||||
else()
|
||||
string(TOUPPER "${_find_name}" _find_name_upper)
|
||||
set(${_find_name}_FOUND OFF) # cmake-lint: disable=C0103
|
||||
set(${_find_name_upper}_FOUND OFF) # cmake-lint: disable=C0103
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue