We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent daa432f commit 2f21cf3Copy full SHA for 2f21cf3
cmake/IncludeNlohmannJson.cmake
@@ -15,20 +15,7 @@
15
# ~~~
16
17
function (find_nlohmann_json)
18
- find_package(nlohmann_json CONFIG QUIET)
19
- if (nlohmann_json_FOUND)
20
- return()
21
- endif ()
22
- # As a fall back, try finding the header. Since this is a header-only
23
- # library that is all we need.
24
- find_path(GOOGLE_CLOUD_CPP_NLOHMANN_JSON_HEADER "nlohmann/json.hpp"
25
- REQUIRED)
26
- add_library(nlohmann_json::nlohmann_json UNKNOWN IMPORTED)
27
- set_property(
28
- TARGET nlohmann_json::nlohmann_json
29
- APPEND
30
- PROPERTY INTERFACE_INCLUDE_DIRECTORIES
31
- ${GOOGLE_CLOUD_CPP_NLOHMANN_JSON_HEADER})
+ find_package(nlohmann_json CONFIG REQUIRED)
32
endfunction ()
33
34
find_nlohmann_json()
0 commit comments