mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 04:29:01 +08:00
08bb6e106e
* Update to 7.81.0 * Revise curl wrapper, fix `COMPONENTS` * Update versions * Add fix for multi-ssl config * [skip actions] CI feature test * Refactor lib export fixup Handle Debug/Release/IMPORTED_*... * Fix libssh2 lookup * Fix libidn2.pc for windows * Fix libidn2 import * Fix mbedtls import * Simplify options * [skip actions] CI feature test * Revert CI feature test configuration * Update versions * Limit import lib fixup to WIN32 * Update versions
24 lines
731 B
Diff
24 lines
731 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 874a237..3974956 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -1617,8 +1617,17 @@ if(CURL_ENABLE_EXPORT_TARGET)
|
|
)
|
|
endif()
|
|
|
|
+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)
|
|
+
|
|
install(
|
|
- FILES ${version_config} ${project_config}
|
|
+ FILES ${version_config} ${project_config} ${components_file}
|
|
DESTINATION ${CURL_INSTALL_CMAKE_DIR}
|
|
)
|
|
|