summaryrefslogtreecommitdiff
path: root/Source/cmInstallGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-06-24 11:18:43 -0400
committerBrad King <brad.king@kitware.com>2014-06-24 13:18:20 -0400
commitc9568de52c4e11c04a9f758ea9ecc1e72ea7cbfb (patch)
tree650b97387b48c5e3851d857955ca3ea2d17e1d29 /Source/cmInstallGenerator.h
parentec7cf7ea1311adaf6eb8dd1ab5c2aa8e3745339e (diff)
downloadcmake-c9568de52c4e11c04a9f758ea9ecc1e72ea7cbfb.tar.gz
install: Add CMAKE_INSTALL_MESSAGE variable (#13761)
Create a variable to allow users to control which installation messages are printed. In particular, provide a "LAZY" setting that prints "Installing" messages but not "Up-to-date" messages. This is desirable for incremental re-installations. Suggested-by: J Decker <d3ck0r@gmail.com>
Diffstat (limited to 'Source/cmInstallGenerator.h')
-rw-r--r--Source/cmInstallGenerator.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmInstallGenerator.h b/Source/cmInstallGenerator.h
index 8e8db40177..e32276facc 100644
--- a/Source/cmInstallGenerator.h
+++ b/Source/cmInstallGenerator.h
@@ -16,6 +16,7 @@
#include "cmScriptGenerator.h"
class cmLocalGenerator;
+class cmMakefile;
/** \class cmInstallGenerator
* \brief Support class for generating install scripts.
@@ -27,6 +28,9 @@ public:
enum MessageLevel
{
MessageDefault,
+ MessageAlways,
+ MessageLazy,
+ MessageNever
};
cmInstallGenerator(const char* destination,
@@ -56,6 +60,9 @@ public:
/** Test if this generator installs something for a given configuration. */
bool InstallsForConfig(const std::string& config);
+ /** Select message level from CMAKE_INSTALL_MESSAGE. */
+ static MessageLevel SelectMessageLevel(cmMakefile* mf);
+
protected:
virtual void GenerateScript(std::ostream& os);