From 46c6442ce26edecb3827044e3dd0f7834f682faa Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Tue, 3 Oct 2006 10:57:31 -0400 Subject: [PATCH] BUG: fix for seg fault bug #3815 --- Source/cmMacroCommand.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index e4de342be..cb0b7bd36 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -235,6 +235,10 @@ bool cmMacroHelperCommand::InvokeInitialPass } if(!this->Makefile->ExecuteCommand(newLFF)) { + if(!args[0].FilePath) + { + args[0].FilePath = "Unknown"; + } cmOStringStream error; error << "Error in cmake code at\n" << args[0].FilePath << ":" << args[0].Line << ":\n"