mirror of
https://github.com/curl/curl.git
synced 2026-08-25 11:43:36 +03:00
cmake: drop CURL_USE_PKGCONFIG from curl-config.cmake.in
This variable was meant to be used by curl Find modules, but it turns out it makes no sense to use those from `curl-config.cmake.in`. It means this variable was not used before and will not be used in the future, and therefore safe to delete. Also add missing macros passed to `curl-config.cmake` to comment. Ref: https://github.com/curl/curl/pull/14930#discussion_r1929537797 Closes #16087
This commit is contained in:
parent
49ece646c0
commit
1bc83abfb7
2 changed files with 2 additions and 13 deletions
|
|
@ -23,16 +23,6 @@
|
|||
###########################################################################
|
||||
@PACKAGE_INIT@
|
||||
|
||||
# Keep condition in sync with CMake/curl-config.cmake.in
|
||||
if((UNIX AND NOT ANDROID AND (NOT APPLE OR CMAKE_SYSTEM_NAME MATCHES "Darwin")) OR
|
||||
VCPKG_TOOLCHAIN OR
|
||||
(MINGW AND NOT CMAKE_CROSSCOMPILING))
|
||||
set(_curl_use_pkgconfig_default ON)
|
||||
else()
|
||||
set(_curl_use_pkgconfig_default OFF)
|
||||
endif()
|
||||
option(CURL_USE_PKGCONFIG "Enable pkg-config to detect @PROJECT_NAME@ dependencies" ${_curl_use_pkgconfig_default})
|
||||
|
||||
include(CMakeFindDependencyMacro)
|
||||
if("@USE_OPENSSL@")
|
||||
find_dependency(OpenSSL "@OPENSSL_VERSION_MAJOR@")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue