From 317dbdb79761ef65e45c7358cfc7571c6afa54ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20THIERRY?= Date: Tue, 23 Dec 2014 09:30:24 +0100 Subject: Imported Upstream version 2.8.12.2 --- Source/cmFileCommand.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'Source/cmFileCommand.h') diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h index 5973fa732..aa755d1f5 100644 --- a/Source/cmFileCommand.h +++ b/Source/cmFileCommand.h @@ -88,6 +88,9 @@ public: " file(UPLOAD filename url [INACTIVITY_TIMEOUT timeout]\n" " [TIMEOUT timeout] [STATUS status] [LOG log] [SHOW_PROGRESS])\n" " file(TIMESTAMP filename variable [] [UTC])\n" + " file(GENERATE OUTPUT output_file\n" + " \n" + " [CONDITION expression])\n" "WRITE will write a message into a file called 'filename'. It " "overwrites the file if it already exists, and creates the file " "if it does not exist. (If the file is a build input, use " @@ -231,6 +234,15 @@ public: "it prints status messages, and NO_SOURCE_PERMISSIONS is default. " "Installation scripts generated by the install() command use this " "signature (with some undocumented options for internal use)." + "\n" + "GENERATE will write an with content from an " + ", or from . The output is generated " + "conditionally based on the content of the . The file is " + "written at CMake generate-time and the input may contain generator " + "expressions. The , and may " + "also contain generator expressions. The must evaluate to " + "either '0' or '1'. The must evaluate to a unique name " + "among all configurations and among all invocations of file(GENERATE)." // Undocumented INSTALL options: // - RENAME // - OPTIONAL @@ -269,6 +281,13 @@ protected: bool HandleUploadCommand(std::vector const& args); bool HandleTimestampCommand(std::vector const& args); + bool HandleGenerateCommand(std::vector const& args); + +private: + void AddEvaluationFile(const std::string &inputName, + const std::string &outputExpr, + const std::string &condition, + bool inputIsContent); }; -- cgit v1.2.3