1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-22 15:54:57 +00:00

CMakeLists: Remove cond where curl is not found

This commit is contained in:
Geoffrey Bonneville 2024-01-13 10:21:30 +01:00
parent 403b4c085c
commit 0d760baec6

View file

@ -226,12 +226,6 @@ find_package(PkgConfig QUIET)
find_package(CURL ${CURL_MINIMUM} REQUIRED) find_package(CURL ${CURL_MINIMUM} REQUIRED)
if(NOT TARGET CURL::libcurl)
add_library(CURL::libcurl INTERFACE IMPORTED)
target_link_libraries(CURL::libcurl INTERFACE ${CURL_LIBRARIES})
target_include_directories(CURL::libcurl INTERFACE ${CURL_INCLUDE_DIRS})
endif()
if(ENABLE_DEPRECATED STREQUAL "AUTO") if(ENABLE_DEPRECATED STREQUAL "AUTO")
if(DEFINED ENV{CI}) if(DEFINED ENV{CI})
set(ENABLE_DEPRECATED OFF) set(ENABLE_DEPRECATED OFF)