Which version of CMake first supported json manipulation commands?
- User
Which version of CMake first supported json manipulation commands?
- Assistant
CMake first introduced JSON manipulation commands in version 3.19, released in November 2020. These commands allow for parsing, querying, and modifying JSON data directly within CMake scripts. The key JSON-related commands introduced in CMake 3.19 include:
string(JSON ...)file(READ ... JSON ...)
These commands enable CMake to handle JSON data natively, making it easier to work with JSON files for configuration, data exchange, or other purposes in CMake-based projects.
If you need JSON manipulation in CMake, ensure you are using version 3.19 or later. You can check your CMake version by running:
bashcmake --versionIf you need to enforce a minimum version in your CMake script, you can use:
cmakecmake_minimum_required(VERSION 3.19)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.