summaryrefslogtreecommitdiffstats
path: root/Tests/FindCURL
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-06-18 17:55:52 (GMT)
committerBrad King <brad.king@kitware.com>2018-06-18 17:58:21 (GMT)
commit1e356734a78b821525560aa1d6d5557f74f2646d (patch)
treedde2d383a65ffd1481d8e271b5dff54ce57392ec /Tests/FindCURL
parentef5e2e8a62982ebccf4883fc7a01cdb66f8ca183 (diff)
downloadCMake-1e356734a78b821525560aa1d6d5557f74f2646d.zip
CMake-1e356734a78b821525560aa1d6d5557f74f2646d.tar.gz
CMake-1e356734a78b821525560aa1d6d5557f74f2646d.tar.bz2
FindCURL: Rename imported target to match upstream CURL
Upstream CURL provides imported target `CURL::libcurl`. Rename the target added by `FindCURL` to match. We don't need compatibility with the old name because it has never been in a CMake release (except a 3.12 release candidate). Suggested-by: Jakub Zakrzewski <slither.jz@gmail.com> Acked-by: Rolf Eike Beer <eike@sf-mail.de> Fixes: #18091
Diffstat (limited to 'Tests/FindCURL')
-rw-r--r--Tests/FindCURL/Test/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/FindCURL/Test/CMakeLists.txt b/Tests/FindCURL/Test/CMakeLists.txt
index f0e5568..c3c719b 100644
--- a/Tests/FindCURL/Test/CMakeLists.txt
+++ b/Tests/FindCURL/Test/CMakeLists.txt
@@ -7,7 +7,7 @@ find_package(CURL REQUIRED)
add_definitions(-DCMAKE_EXPECTED_CURL_VERSION="${CURL_VERSION_STRING}")
add_executable(test_tgt main.c)
-target_link_libraries(test_tgt CURL::CURL)
+target_link_libraries(test_tgt CURL::libcurl)
add_test(NAME test_tgt COMMAND test_tgt)
add_executable(test_var main.c)