mirror of
https://github.com/Kitware/CMake.git
synced 2026-08-03 22:30:29 +00:00
fileapi: Add helper to create and reference a json reply file
This commit is contained in:
@@ -31,6 +31,11 @@ public:
|
||||
/** Get the "cmake" instance with which this was constructed. */
|
||||
cmake* GetCMakeInstance() const { return this->CMakeInstance; }
|
||||
|
||||
/** Convert a JSON object or array into an object with a single
|
||||
"jsonFile" member specifying a file named with the given prefix
|
||||
and holding the original object. Other JSON types are unchanged. */
|
||||
Json::Value MaybeJsonFile(Json::Value in, std::string const& prefix);
|
||||
|
||||
private:
|
||||
cmake* CMakeInstance;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user