diff options
author | Brad King <brad.king@kitware.com> | 2008-03-07 13:40:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-03-07 13:40:36 (GMT) |
commit | 680104a490250f7b56b67aa3cbb7c113d997e93c (patch) | |
tree | 52af6beb6a876f03a1205c050ad8295e338ca573 /Source/cmListFileCache.cxx | |
parent | 41a59e211ef6b0c9c839545661579934ce9415c1 (diff) | |
download | CMake-680104a490250f7b56b67aa3cbb7c113d997e93c.zip CMake-680104a490250f7b56b67aa3cbb7c113d997e93c.tar.gz CMake-680104a490250f7b56b67aa3cbb7c113d997e93c.tar.bz2 |
ENH: New format for warning and error messages
- Add cmMakefile methods IssueError and IssueWarning
- Maintain an explicit call stack in cmMakefile
- Include context/call-stack info in messages
- Nested errors now unwind the call stack
- Use new mechanism for policy warnings and errors
- Improve policy error message
- Include cmExecutionStatus pointer in call stack
so that errors deeper in the C++ stack under
a command invocation will become errors for the
command
Diffstat (limited to 'Source/cmListFileCache.cxx')
-rw-r--r-- | Source/cmListFileCache.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Source/cmListFileCache.cxx b/Source/cmListFileCache.cxx index d49797a..04b436e 100644 --- a/Source/cmListFileCache.cxx +++ b/Source/cmListFileCache.cxx @@ -152,15 +152,15 @@ bool cmListFile::ParseFile(const char* filename, switch (mf->GetPolicyStatus(cmPolicies::CMP_0000)) { case cmPolicies::WARN: - cmSystemTools::Message( - mf->GetPolicies()->GetPolicyWarning - (cmPolicies::CMP_0000).c_str(),"Warning"); + mf->IssueWarning( + mf->GetPolicies()->GetPolicyWarning(cmPolicies::CMP_0000) + ); case cmPolicies::OLD: break; default: - cmSystemTools::Error( - mf->GetPolicies()->GetRequiredPolicyError - (cmPolicies::CMP_0000).c_str()); + mf->IssueError( + mf->GetPolicies()->GetRequiredPolicyError(cmPolicies::CMP_0000) + ); return false; } } |