Skip to content

Commit e31de94

Browse files
authored
feat: make nlohmann a required dependency (#15825)
1 parent daa432f commit e31de94

File tree

4 files changed

+3
-37
lines changed

4 files changed

+3
-37
lines changed

cmake/IncludeNlohmannJson.cmake

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

generator/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ find_package(Protobuf CONFIG QUIET)
2727
if (NOT Protobuf_FOUND)
2828
find_package(Protobuf REQUIRED)
2929
endif ()
30-
include(IncludeNlohmannJson)
30+
find_package(nlohmann_json CONFIG REQUIRED)
3131
find_package(yaml-cpp CONFIG REQUIRED)
3232

3333
add_library(

google/cloud/google_cloud_cpp_rest_internal.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(IncludeNlohmannJson)
17+
find_package(nlohmann_json CONFIG REQUIRED)
1818
find_package(CURL REQUIRED)
1919
if (NOT WIN32)
2020
find_package(OpenSSL REQUIRED)

google/cloud/storage/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ google_cloud_cpp_doxygen_targets("storage" DEPENDS cloud-docs
3030

3131
include(GoogleCloudCppCommon)
3232

33-
include(IncludeNlohmannJson)
33+
find_package(nlohmann_json CONFIG REQUIRED)
3434

3535
# Export the version information for Bazel.
3636
include(CreateBazelConfig)

0 commit comments

Comments
 (0)