[Cmake-commits] CMake branch, next, updated. v2.8.2-223-gaa048e7
David Cole
david.cole at kitware.com
Sat Jul 10 15:38:28 EDT 2010
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".
The branch, next has been updated
via aa048e7d08762b24aae44df9265c3de9417b0be4 (commit)
via b2634b6aa3a0203e3a97060cf9e3206245a85080 (commit)
from c8c32115c92be0f84a070c7e9cae99b78a0e20cf (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=aa048e7d08762b24aae44df9265c3de9417b0be4
commit aa048e7d08762b24aae44df9265c3de9417b0be4
Merge: c8c3211 b2634b6
Author: David Cole <david.cole at kitware.com>
AuthorDate: Sat Jul 10 15:35:28 2010 -0400
Commit: David Cole <david.cole at kitware.com>
CommitDate: Sat Jul 10 15:35:28 2010 -0400
Merge branch 'external-project-launcher' into next
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=b2634b6aa3a0203e3a97060cf9e3206245a85080
commit b2634b6aa3a0203e3a97060cf9e3206245a85080
Author: David Cole <david.cole at kitware.com>
AuthorDate: Fri Jul 2 13:22:30 2010 -0400
Commit: David Cole <david.cole at kitware.com>
CommitDate: Sat Jul 10 15:04:31 2010 -0400
Detect CMake warnings and errors in build output.
Fix niggly in ExternalProject that would inadvertently
create a log file of output when a command was explicitly
set to the empty string.
Also, increase the default value for showing context
around build errors to 10 lines, up from 6. Also add
the ability to customize this setting so that users
can put it back to 6 or even lower if they want, or
show more if they want.
diff --git a/Modules/ExternalProject.cmake b/Modules/ExternalProject.cmake
index 9b35a95..2faa190 100644
--- a/Modules/ExternalProject.cmake
+++ b/Modules/ExternalProject.cmake
@@ -780,7 +780,7 @@ function(ExternalProject_Add_Step name step)
# Wrap with log script?
get_property(log TARGET ${name} PROPERTY _EP_${step}_LOG)
- if(log)
+ if(command AND log)
_ep_write_log_script(${name} ${step} command)
endif()
diff --git a/Source/CTest/cmCTestBuildHandler.cxx b/Source/CTest/cmCTestBuildHandler.cxx
index bc02fbc..619783f 100644
--- a/Source/CTest/cmCTestBuildHandler.cxx
+++ b/Source/CTest/cmCTestBuildHandler.cxx
@@ -65,7 +65,7 @@ static const char* cmCTestErrorMatches[] = {
"^Unresolved:",
"Undefined symbols:",
"^Undefined[ \\t]+first referenced",
- "^CMake Error:",
+ "^CMake Error.*:",
":[ \\t]cannot find",
":[ \\t]can't find",
": \\*\\*\\* No rule to make target \\`.*\\'. Stop",
@@ -129,6 +129,7 @@ static const char* cmCTestWarningMatches[] = {
"\\([0-9]*\\): remark #[0-9]*",
"\".*\", line [0-9]+: remark\\([0-9]*\\):",
"cc-[0-9]* CC: REMARK File = .*, Line = [0-9]*",
+ "^CMake Warning.*:",
0
};
@@ -174,8 +175,8 @@ cmCTestWarningErrorFileLine[] = {
//----------------------------------------------------------------------
cmCTestBuildHandler::cmCTestBuildHandler()
{
- this->MaxPreContext = 6;
- this->MaxPostContext = 6;
+ this->MaxPreContext = 10;
+ this->MaxPostContext = 10;
this->MaxErrors = 50;
this->MaxWarnings = 50;
@@ -214,8 +215,8 @@ void cmCTestBuildHandler::Initialize()
this->ErrorsAndWarnings.clear();
this->LastErrorOrWarning = this->ErrorsAndWarnings.end();
this->PostContextCount = 0;
- this->MaxPreContext = 6;
- this->MaxPostContext = 6;
+ this->MaxPreContext = 10;
+ this->MaxPostContext = 10;
this->PreContext.clear();
this->TotalErrors = 0;
@@ -249,6 +250,20 @@ void cmCTestBuildHandler::PopulateCustomVectors(cmMakefile *mf)
"CTEST_CUSTOM_MAXIMUM_NUMBER_OF_WARNINGS",
this->MaxWarnings);
+ int n = -1;
+ this->CTest->PopulateCustomInteger(mf, "CTEST_CUSTOM_ERROR_PRE_CONTEXT", n);
+ if (n != -1)
+ {
+ this->MaxPreContext = static_cast<size_t>(n);
+ }
+
+ n = -1;
+ this->CTest->PopulateCustomInteger(mf, "CTEST_CUSTOM_ERROR_POST_CONTEXT", n);
+ if (n != -1)
+ {
+ this->MaxPostContext = static_cast<size_t>(n);
+ }
+
// Record the user-specified custom warning rules.
if(const char* customWarningMatchers =
mf->GetDefinition("CTEST_CUSTOM_WARNING_MATCH"))
-----------------------------------------------------------------------
Summary of changes:
Modules/ExternalProject.cmake | 2 +-
Source/CTest/cmCTestBuildHandler.cxx | 25 ++++++++++++++++++++-----
2 files changed, 21 insertions(+), 6 deletions(-)
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list