summaryrefslogtreecommitdiffstats
path: root/Source/cmSystemTools.h
diff options
context:
space:
mode:
authorChristian Pfeiffer <cpfeiffer@live.de>2017-04-18 21:06:39 (GMT)
committerBrad King <brad.king@kitware.com>2017-04-19 15:02:24 (GMT)
commitbbb5c3efe2a17d046506b7c27008c77ea244f0bc (patch)
treeefa83801c7982bd247727af35fa6e7f15a13aedc /Source/cmSystemTools.h
parentddd2b02455db9b0ef3604af1b9b10c22af56bff9 (diff)
downloadCMake-bbb5c3efe2a17d046506b7c27008c77ea244f0bc.zip
CMake-bbb5c3efe2a17d046506b7c27008c77ea244f0bc.tar.gz
CMake-bbb5c3efe2a17d046506b7c27008c77ea244f0bc.tar.bz2
Ninja,Makefile: Unify command line limit logic
Move the logic to cmSystemTools to be shared among the generators. Revise the implementation and add comments justifying each possible source for a limit.
Diffstat (limited to 'Source/cmSystemTools.h')
-rw-r--r--Source/cmSystemTools.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmSystemTools.h b/Source/cmSystemTools.h
index 86d92be..a8a9995 100644
--- a/Source/cmSystemTools.h
+++ b/Source/cmSystemTools.h
@@ -253,6 +253,8 @@ public:
static void ParseUnixCommandLine(const char* command,
std::vector<std::string>& args);
+ static size_t CalculateCommandLineLengthLimit();
+
static void EnableMessages() { s_DisableMessages = false; }
static void DisableMessages() { s_DisableMessages = true; }
static void DisableRunCommandOutput() { s_DisableRunCommandOutput = true; }