mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 19:19:01 +08:00
23 lines
787 B
Diff
23 lines
787 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index fbb33a1..db3a5ee 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -2254,7 +2254,17 @@ if(NOT CURL_DISABLE_INSTALL)
|
|
DESTINATION ${_install_cmake_dir})
|
|
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}
|
|
+ ${components_file}
|
|
DESTINATION ${_install_cmake_dir})
|
|
|
|
# Workaround for MSVS10 to avoid the Dialog Hell
|