diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 16:09:47 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2006-10-03 16:09:47 (GMT) |
commit | d5cce9f0b55f54b3a4ec1a9766d0449fb3a81e81 (patch) | |
tree | cd94afa7e859d62d109468054c7e41af2510c395 /Source/cmMacroCommand.cxx | |
parent | 9c4302f79e0547481a275c7ca655c04fc2d089c9 (diff) | |
download | CMake-d5cce9f0b55f54b3a4ec1a9766d0449fb3a81e81.zip CMake-d5cce9f0b55f54b3a4ec1a9766d0449fb3a81e81.tar.gz CMake-d5cce9f0b55f54b3a4ec1a9766d0449fb3a81e81.tar.bz2 |
ENH: fix compile error
Diffstat (limited to 'Source/cmMacroCommand.cxx')
-rw-r--r-- | Source/cmMacroCommand.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmMacroCommand.cxx b/Source/cmMacroCommand.cxx index cb0b7bd..db4a4d6 100644 --- a/Source/cmMacroCommand.cxx +++ b/Source/cmMacroCommand.cxx @@ -235,13 +235,14 @@ bool cmMacroHelperCommand::InvokeInitialPass } if(!this->Makefile->ExecuteCommand(newLFF)) { - if(!args[0].FilePath) + const char* filePath = args[0].FilePath; + if(!filePath) { - args[0].FilePath = "Unknown"; + filePath = "Unknown"; } cmOStringStream error; error << "Error in cmake code at\n" - << args[0].FilePath << ":" << args[0].Line << ":\n" + << filePath << ":" << args[0].Line << ":\n" << "A command failed during the invocation of macro \"" << this->Args[0].c_str() << "\"."; cmSystemTools::Error(error.str().c_str()); |