mirror of
https://github.com/curl/curl.git
synced 2026-04-14 21:31:42 +03:00
cmake: fix CURL_DROP_UNUSED accidental left always-enabled
Follow-up to 66ad54e46b #20357
Closes #20565
This commit is contained in:
parent
c220674ac4
commit
325d0e0a68
1 changed files with 1 additions and 1 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue