diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-19 22:52:08 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2001-11-19 22:52:08 (GMT) |
commit | da17f30cb515775000ec7dd1d3fab8b3621c2587 (patch) | |
tree | 9548b3afab27b95fb4defa16b17aadfd02654d1a /Source/cmSystemTools.cxx | |
parent | 4d5f9deb00f851477258da139cde8362d14674c4 (diff) | |
download | CMake-da17f30cb515775000ec7dd1d3fab8b3621c2587.zip CMake-da17f30cb515775000ec7dd1d3fab8b3621c2587.tar.gz CMake-da17f30cb515775000ec7dd1d3fab8b3621c2587.tar.bz2 |
ENH: add new command VARIABLE_REQUIRES for better debugging of list files
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index c2ff201..517d500 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -92,6 +92,7 @@ inline int Chdir(const char* dir) #endif bool cmSystemTools::s_ErrorOccured = false; +bool cmSystemTools::s_DisableMessages = false; void (*cmSystemTools::s_ErrorCallback)(const char*, const char*, bool&); @@ -711,14 +712,13 @@ void cmSystemTools::SetErrorCallback(ErrorCallback f) void cmSystemTools::Message(const char* m1, const char *title) { - static bool disableMessages = false; - if(disableMessages) + if(s_DisableMessages) { return; } if(s_ErrorCallback) { - (*s_ErrorCallback)(m1, title, disableMessages); + (*s_ErrorCallback)(m1, title, s_DisableMessages); return; } else |