diff options
author | Brad King <brad.king@kitware.com> | 2014-06-24 15:40:26 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-06-24 17:18:20 (GMT) |
commit | d19b64d671e9f1e706218bd0acc6a727e7114158 (patch) | |
tree | 80d62ad1ce7000c1adb185e90b45794257828bef /Source/cmInstallGenerator.cxx | |
parent | c9568de52c4e11c04a9f758ea9ecc1e72ea7cbfb (diff) | |
download | CMake-d19b64d671e9f1e706218bd0acc6a727e7114158.zip CMake-d19b64d671e9f1e706218bd0acc6a727e7114158.tar.gz CMake-d19b64d671e9f1e706218bd0acc6a727e7114158.tar.bz2 |
install(DIRECTORY): Add MESSAGE_NEVER option to avoid output (#13761)
Installing large directories, e.g., the output of a doxygen run, prints
one line per file resulting in too much noise in the build output. Add
an option to the install(DIRECTORY) command to not print anything upon
make install.
Extend the RunCMake.install test with cases covering MESSAGE_NEVER
behavior of the install(DIRECTORY) command.
Suggested-by: Stefan Eilemann <Stefan.Eilemann@epfl.ch>
Diffstat (limited to 'Source/cmInstallGenerator.cxx')
-rw-r--r-- | Source/cmInstallGenerator.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmInstallGenerator.cxx b/Source/cmInstallGenerator.cxx index 7c6c5ae..b261cbf 100644 --- a/Source/cmInstallGenerator.cxx +++ b/Source/cmInstallGenerator.cxx @@ -193,8 +193,12 @@ std::string cmInstallGenerator::GetInstallDestination() const //---------------------------------------------------------------------------- cmInstallGenerator::MessageLevel -cmInstallGenerator::SelectMessageLevel(cmMakefile* mf) +cmInstallGenerator::SelectMessageLevel(cmMakefile* mf, bool never) { + if(never) + { + return MessageNever; + } std::string m = mf->GetSafeDefinition("CMAKE_INSTALL_MESSAGE"); if(m == "ALWAYS") { |