|
|
@@ -178,6 +178,9 @@ macro(CMAKE_HANDLE_SYSTEM_LIBRARIES)
|
|
|
string(TOLOWER "${util}" lutil)
|
|
|
set(CMAKE_USE_SYSTEM_${util} "${CMAKE_USE_SYSTEM_LIBRARY_${util}}"
|
|
|
CACHE BOOL "Use system-installed ${lutil}" FORCE)
|
|
|
+ elseif(util STREQUAL "CURL" AND APPLE)
|
|
|
+ # macOS provides a curl with backends configured by Apple.
|
|
|
+ set(CMAKE_USE_SYSTEM_LIBRARY_${util} ON)
|
|
|
else()
|
|
|
set(CMAKE_USE_SYSTEM_LIBRARY_${util} OFF)
|
|
|
endif()
|
|
|
@@ -215,6 +218,10 @@ macro(CMAKE_HANDLE_SYSTEM_LIBRARIES)
|
|
|
mark_as_advanced(CMAKE_USE_SYSTEM_KWIML)
|
|
|
|
|
|
# Mention to the user what system libraries are being used.
|
|
|
+ if(CMAKE_USE_SYSTEM_CURL)
|
|
|
+ # Avoid messaging about curl-only dependencies.
|
|
|
+ list(REMOVE_ITEM UTILITIES NGHTTP2)
|
|
|
+ endif()
|
|
|
foreach(util IN LISTS UTILITIES ITEMS KWIML)
|
|
|
if(CMAKE_USE_SYSTEM_${util})
|
|
|
message(STATUS "Using system-installed ${util}")
|