nlohmann_json_cmake_fetchcontent | lightweight Release-tracking repository | Build Tool library
kandi X-RAY | nlohmann_json_cmake_fetchcontent Summary
kandi X-RAY | nlohmann_json_cmake_fetchcontent Summary
A lightweight Release-tracking repository for nlohmann/json. Suitable for CMake fetchcontent. Automatically upgraded every weeks.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of nlohmann_json_cmake_fetchcontent
nlohmann_json_cmake_fetchcontent Key Features
nlohmann_json_cmake_fetchcontent Examples and Code Snippets
Community Discussions
Trending Discussions on nlohmann_json_cmake_fetchcontent
QUESTION
I have a small project in the works that requires the use of two libraries, namely ASIO (standalone) and nlohmann/json.
Adding the json library to my CMake project is pretty straight-forward:
...ANSWER
Answered 2021-Jan-07 at 21:11FetchContent can deal with non-CMake projects, too. See the full documentation here and in particular the first sentence, which states it can deal with projects "via any method supported by the ExternalProject module."
In the case of asio, which is a header-only library it is quite simple, as you just need to tell FetchContent that there is no "configure" and no "build" step.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install nlohmann_json_cmake_fetchcontent
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page