diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-05-10 19:46:45 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-05-10 19:46:45 (GMT) |
commit | 2af47105250a8a502eb5a3cbe18e1d77d11ec590 (patch) | |
tree | 0c47964082eeb7975bc6e8769d092103bb29f8a7 /Source/cmFileCommand.cxx | |
parent | afbc5743566b31f5270fa0ebabc395ad851e5359 (diff) | |
download | CMake-2af47105250a8a502eb5a3cbe18e1d77d11ec590.zip CMake-2af47105250a8a502eb5a3cbe18e1d77d11ec590.tar.gz CMake-2af47105250a8a502eb5a3cbe18e1d77d11ec590.tar.bz2 |
STYLE: fix line length
Diffstat (limited to 'Source/cmFileCommand.cxx')
-rw-r--r-- | Source/cmFileCommand.cxx | 29 |
1 files changed, 20 insertions, 9 deletions
diff --git a/Source/cmFileCommand.cxx b/Source/cmFileCommand.cxx index 3139b5b..0eb8f45 100644 --- a/Source/cmFileCommand.cxx +++ b/Source/cmFileCommand.cxx @@ -788,9 +788,11 @@ bool cmFileCommand::HandleInstallCommand( cmSystemTools::RemoveFile(soname.c_str()); cmSystemTools::RemoveFile(libname.c_str()); - if (!cmSystemTools::CreateSymlink(soname_nopath.c_str(), libname.c_str()) ) + if (!cmSystemTools::CreateSymlink(soname_nopath.c_str(), + libname.c_str()) ) { - std::string errstring = "error when creating symlink from: " + libname + " to " + soname_nopath; + std::string errstring = "error when creating symlink from: " + + libname + " to " + soname_nopath; this->SetError(errstring.c_str()); return false; } @@ -798,9 +800,11 @@ bool cmFileCommand::HandleInstallCommand( smanifest_files += libname.substr(destDirLength);; if ( toFile != soname ) { - if ( !cmSystemTools::CreateSymlink(fromName.c_str(), soname.c_str()) ) + if ( !cmSystemTools::CreateSymlink(fromName.c_str(), + soname.c_str()) ) { - std::string errstring = "error when creating symlink from: " + soname + " to " + fromName; + std::string errstring = "error when creating symlink from: " + + soname + " to " + fromName; this->SetError(errstring.c_str()); return false; } @@ -832,9 +836,11 @@ bool cmFileCommand::HandleInstallCommand( cmSystemTools::RemoveFile(exename.c_str()); - if (!cmSystemTools::CreateSymlink(exename_nopath.c_str(), exename.c_str()) ) + if (!cmSystemTools::CreateSymlink(exename_nopath.c_str(), + exename.c_str()) ) { - std::string errstring = "error when creating symlink from: " + exename + " to " + exename_nopath; + std::string errstring = "error when creating symlink from: " + + exename + " to " + exename_nopath; this->SetError(errstring.c_str()); return false; } @@ -955,18 +961,23 @@ bool cmFileCommand::HandleRelativePathCommand( if(!cmSystemTools::FileIsFullPath(directoryName.c_str())) { - std::string errstring = "RelativePath must be passed a full path to the directory: " + directoryName; + std::string errstring = + "RelativePath must be passed a full path to the directory: " + + directoryName; this->SetError(errstring.c_str()); return false; } if(!cmSystemTools::FileIsFullPath(fileName.c_str())) { - std::string errstring = "RelativePath must be passed a full path to the directory: " + directoryName; + std::string errstring = + "RelativePath must be passed a full path to the directory: " + + directoryName; this->SetError(errstring.c_str()); return false; } - std::string res = cmSystemTools::RelativePath(directoryName.c_str(), fileName.c_str()); + std::string res = cmSystemTools::RelativePath(directoryName.c_str(), + fileName.c_str()); this->Makefile->AddDefinition(outVar.c_str(), res.c_str()); return true; |