vcpkg/ports/curl/export-components.patch

23 lines
712 B
Diff
Raw Normal View History

diff --git a/CMakeLists.txt b/CMakeLists.txt
2024-07-31 02:42:29 +02:00
index 3820c2d..f9a775a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2024-07-31 02:42:29 +02:00
@@ -1952,7 +1952,17 @@ if(NOT CURL_DISABLE_INSTALL)
2024-01-03 06:32:00 +08:00
)
endif()
2024-07-31 02:42:29 +02:00
2024-01-03 06:32:00 +08:00
+ set(components_file "${CMAKE_CURRENT_BINARY_DIR}/CURLConfigComponents.cmake")
+ file(CONFIGURE OUTPUT "${components_file}" CONTENT [[
+ foreach(z_vcpkg_curl_component IN ITEMS @SUPPORT_FEATURES@ @SUPPORT_PROTOCOLS@)
+ if(z_vcpkg_curl_component MATCHES "^[-_a-zA-Z0-9]*$")
+ set(CURL_${z_vcpkg_curl_component}_FOUND TRUE)
+ endif()
+ endforeach()
+ ]] @ONLY)
2024-07-31 02:42:29 +02:00
+
install(FILES ${version_config} ${project_config}
+ ${components_file}
2024-01-03 06:32:00 +08:00
DESTINATION ${CURL_INSTALL_CMAKE_DIR}
)