diff options
author | Brad King <brad.king@kitware.com> | 2023-12-20 14:05:46 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2023-12-20 14:06:08 (GMT) |
commit | c0ab85915434c86fee562e0b06e9986bc5288ea6 (patch) | |
tree | 729a0c7e5d6fdcf43cc3e48391366c17ccc898a3 /Modules | |
parent | 3df386a7c2fe9c37976b7614b12d0964eb0bf6da (diff) | |
parent | ab6b44b1bb88273a7944acf822560386f9a0a082 (diff) | |
download | CMake-c0ab85915434c86fee562e0b06e9986bc5288ea6.zip CMake-c0ab85915434c86fee562e0b06e9986bc5288ea6.tar.gz CMake-c0ab85915434c86fee562e0b06e9986bc5288ea6.tar.bz2 |
Merge topic 'FindCURL-pkg-config'
ab6b44b1bb FindCURL: Fix parsing protocols/features from pkg-config output
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9090
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCURL.cmake | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindCURL.cmake b/Modules/FindCURL.cmake index 2f33dac..5e5f1f8 100644 --- a/Modules/FindCURL.cmake +++ b/Modules/FindCURL.cmake @@ -94,8 +94,10 @@ find_package(PkgConfig QUIET) if(PKG_CONFIG_FOUND) pkg_check_modules(PC_CURL QUIET libcurl) if(PC_CURL_FOUND) - pkg_get_variable(CURL_SUPPORTED_PROTOCOLS libcurl supported_protocols) - pkg_get_variable(CURL_SUPPORTED_FEATURES libcurl supported_features) + pkg_get_variable(CURL_SUPPORTED_PROTOCOLS_STRING libcurl supported_protocols) + string(REPLACE " " ";" CURL_SUPPORTED_PROTOCOLS "${CURL_SUPPORTED_PROTOCOLS_STRING}") + pkg_get_variable(CURL_SUPPORTED_FEATURES_STRING libcurl supported_features) + string(REPLACE " " ";" CURL_SUPPORTED_FEATURES "${CURL_SUPPORTED_FEATURES_STRING}") endif() endif() |