diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-12-01 16:04:23 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-12-01 16:04:23 (GMT) |
commit | 965ad87afaa21cdfc26d6c948d450be43bd30d1f (patch) | |
tree | 8d9c2970611e79b353347e6bcf0a5a0c5d8088ac /Source | |
parent | 58f670327c08d8cb187da83f81e87715063546f3 (diff) | |
download | CMake-965ad87afaa21cdfc26d6c948d450be43bd30d1f.zip CMake-965ad87afaa21cdfc26d6c948d450be43bd30d1f.tar.gz CMake-965ad87afaa21cdfc26d6c948d450be43bd30d1f.tar.bz2 |
ENH: merge in fix for seg fault and move to RC 4
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmMacroCommand.cxx | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index db4a4d6..3e1fc2d 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -235,14 +235,20 @@ bool cmMacroHelperCommand::InvokeInitialPass } if(!this->Makefile->ExecuteCommand(newLFF)) { - const char* filePath = args[0].FilePath; - if(!filePath) + cmListFileArgument arg; + if(args.size()) { - filePath = "Unknown"; + arg.FilePath = args[0].FilePath; + arg.Line = args[0].Line; + } + else + { + arg.FilePath = "Unknown"; + arg.Line = 0; } cmOStringStream error; error << "Error in cmake code at\n" - << filePath << ":" << args[0].Line << ":\n" + << arg.FilePath << ":" << arg.Line << ":\n" << "A command failed during the invocation of macro \"" << this->Args[0].c_str() << "\"."; cmSystemTools::Error(error.str().c_str()); |