cmake: fix CURL_DROP_UNUSED accidental left always-enabled

Follow-up to 66ad54e46b #20357

Closes #20565
This commit is contained in:
Viktor Szakats 2026-02-11 16:47:38 +01:00
parent c220674ac4
commit 325d0e0a68
No known key found for this signature in database

View file

@ -304,7 +304,7 @@ endif()
set(CURL_CFLAGS "") # C flags set for libcurl and curl tool (aka public binaries) only
option(CURL_DROP_UNUSED "Drop unused code and data from built binaries" OFF)
if(CURL_DROP_UNUSED OR TRUE)
if(CURL_DROP_UNUSED)
if(APPLE)
if(CMAKE_VERSION VERSION_GREATER_EQUAL 3.13)
set_property(DIRECTORY APPEND PROPERTY LINK_OPTIONS "-Wl,-dead_strip")