2022-01-20 01:15:16 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-11-11 16:32:33 +08:00
|
|
|
index fbb33a1..db3a5ee 100644
|
2022-01-20 01:15:16 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-11-11 16:32:33 +08:00
|
|
|
@@ -2254,7 +2254,17 @@ if(NOT CURL_DISABLE_INSTALL)
|
|
|
|
DESTINATION ${_install_cmake_dir})
|
2024-01-03 06:32:00 +08:00
|
|
|
endif()
|
2024-07-31 08:42:29 +08: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 08:42:29 +08:00
|
|
|
+
|
2024-09-12 05:03:28 +08:00
|
|
|
install(FILES ${_version_config} ${_project_config}
|
2024-07-31 08:42:29 +08:00
|
|
|
+ ${components_file}
|
2024-11-11 16:32:33 +08:00
|
|
|
DESTINATION ${_install_cmake_dir})
|
2022-01-20 01:15:16 +08:00
|
|
|
|
2024-09-12 05:03:28 +08:00
|
|
|
# Workaround for MSVS10 to avoid the Dialog Hell
|