Skip to content

Commit e0c98bb

Browse files
authored
cleanup: CMake >= 3.13 always has CURL::libcurl (#12938)
Since we now require CMake >= 3.13, we do not need workarounds to define `CURL::libcurl`.
1 parent 11e9d0f commit e0c98bb

7 files changed

Lines changed: 3 additions & 85 deletions

File tree

cmake/FindCurlWithTargets.cmake

Lines changed: 0 additions & 68 deletions
This file was deleted.

examples/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ if (bigtable IN_LIST GOOGLE_CLOUD_CPP_ENABLE AND storage IN_LIST
3232
google_cloud_cpp_add_common_options(gcs2cbt)
3333
endif ()
3434

35-
include(FindCurlWithTargets)
35+
find_package(CURL REQUIRED)
3636
include(FindgRPC)
3737

3838
if (spanner IN_LIST GOOGLE_CLOUD_CPP_ENABLE AND iam IN_LIST

google/cloud/google_cloud_cpp_rest_internal.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# ~~~
1616

1717
include(IncludeNlohmannJson)
18-
include(FindCurlWithTargets)
18+
find_package(CURL REQUIRED)
1919
find_package(OpenSSL REQUIRED)
2020

2121
# the library

google/cloud/storage/benchmarks/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,6 @@ foreach (fname ${storage_benchmark_programs})
6969
google-cloud-cpp::storage
7070
google-cloud-cpp::common
7171
absl::strings
72-
CURL::libcurl
7372
Threads::Threads
7473
nlohmann_json)
7574
google_cloud_cpp_add_common_options(${target})
@@ -104,7 +103,6 @@ foreach (fname ${storage_benchmarks_unit_tests})
104103
GTest::gmock_main
105104
GTest::gmock
106105
GTest::gtest
107-
CURL::libcurl
108106
absl::strings
109107
nlohmann_json)
110108
google_cloud_cpp_add_common_options(${target})

google/cloud/storage/config-grpc.cmake.in

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ find_dependency(nlohmann_json)
2424
find_dependency(OpenSSL)
2525
find_dependency(ZLIB)
2626

27-
# Some versions of FindCURL do not define CURL::libcurl, so we define it ourselves.
28-
if (NOT TARGET CURL::libcurl)
29-
add_library(CURL::libcurl UNKNOWN IMPORTED)
30-
set_property(TARGET CURL::libcurl
31-
APPEND
32-
PROPERTY INTERFACE_INCLUDE_DIRECTORIES "${CURL_INCLUDE_DIR}")
33-
set_property(TARGET CURL::libcurl
34-
APPEND
35-
PROPERTY IMPORTED_LOCATION "${CURL_LIBRARY}")
36-
endif ()
37-
3827
include("${CMAKE_CURRENT_LIST_DIR}/storage-targets.cmake")
3928

4029
# TODO(12698) - remove transition name (experimental-storage-grpc)

google/cloud/storage/google_cloud_cpp_storage.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
# limitations under the License.
1515
# ~~~
1616

17-
include(FindCurlWithTargets)
17+
find_package(CURL REQUIRED)
1818
find_package(OpenSSL REQUIRED)
1919

2020
# the client library

google/cloud/storage/tests/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@ foreach (fname IN LISTS storage_client_integration_tests)
102102
GTest::gmock_main
103103
GTest::gmock
104104
GTest::gtest
105-
CURL::libcurl
106105
Threads::Threads
107106
absl::strings
108107
nlohmann_json)

0 commit comments

Comments
 (0)