diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 14:57:31 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 14:57:31 (GMT) |
commit | 46c6442ce26edecb3827044e3dd0f7834f682faa (patch) | |
tree | 3bb488fd606b73a105415b3e5f5f0c53cf951513 /Source/cmMacroCommand.cxx | |
parent | 48ee381e6b6614776bc4008eb985218aca533f56 (diff) | |
download | CMake-46c6442ce26edecb3827044e3dd0f7834f682faa.zip CMake-46c6442ce26edecb3827044e3dd0f7834f682faa.tar.gz CMake-46c6442ce26edecb3827044e3dd0f7834f682faa.tar.bz2 |
BUG: fix for seg fault bug #3815
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index e4de342..cb0b7bd 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" |