cmake: make libpsl required by default
As done earlier in `./configure`:
To force users to explictily disable it if they really don't want it
used and make it harder to accidentally miss it.
`-DCURL_USE_LIBPSL=OFF` is the option to use if PSL is not wanted.
Follow-up to 2998874bb6 #12661
Closes #15464
This commit is contained in:
parent
49f2a23d50
commit
7afbc39173
@ -1114,15 +1114,11 @@ mark_as_advanced(CURL_USE_LIBPSL)
|
||||
set(USE_LIBPSL OFF)
|
||||
|
||||
if(CURL_USE_LIBPSL)
|
||||
find_package(Libpsl) # TODO: add REQUIRED to match autotools
|
||||
if(LIBPSL_FOUND)
|
||||
list(APPEND CURL_LIBS ${LIBPSL_LIBRARIES})
|
||||
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE "libpsl")
|
||||
include_directories(SYSTEM ${LIBPSL_INCLUDE_DIRS})
|
||||
set(USE_LIBPSL ON)
|
||||
else()
|
||||
message(WARNING "libpsl is enabled, but not found.")
|
||||
endif()
|
||||
find_package(Libpsl REQUIRED)
|
||||
list(APPEND CURL_LIBS ${LIBPSL_LIBRARIES})
|
||||
list(APPEND LIBCURL_PC_REQUIRES_PRIVATE "libpsl")
|
||||
include_directories(SYSTEM ${LIBPSL_INCLUDE_DIRS})
|
||||
set(USE_LIBPSL ON)
|
||||
endif()
|
||||
|
||||
# libssh2
|
||||
|
||||
Loading…
Reference in New Issue
Block a user