summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2006-05-10 19:46:45 (GMT)
committerKen Martin <ken.martin@kitware.com>2006-05-10 19:46:45 (GMT)
commit2af47105250a8a502eb5a3cbe18e1d77d11ec590 (patch)
tree0c47964082eeb7975bc6e8769d092103bb29f8a7 /Source
parentafbc5743566b31f5270fa0ebabc395ad851e5359 (diff)
downloadCMake-2af47105250a8a502eb5a3cbe18e1d77d11ec590.zip
CMake-2af47105250a8a502eb5a3cbe18e1d77d11ec590.tar.gz
CMake-2af47105250a8a502eb5a3cbe18e1d77d11ec590.tar.bz2
STYLE: fix line length
Diffstat (limited to 'Source')
-rw-r--r--Source/cmFLTKWrapUICommand.cxx18
-rw-r--r--Source/cmFileCommand.cxx29
-rw-r--r--Source/cmFileCommand.h3
-rw-r--r--Source/cmFileTimeComparison.cxx9
-rw-r--r--Source/cmFindBase.cxx44
-rw-r--r--Source/cmFindFileCommand.cxx3
-rw-r--r--Source/cmFindLibraryCommand.cxx9
-rw-r--r--Source/cmFindPackageCommand.cxx14
-rw-r--r--Source/cmFindPathCommand.cxx36
-rw-r--r--Source/cmFindProgramCommand.cxx21
-rw-r--r--Source/cmForEachCommand.cxx4
11 files changed, 125 insertions, 65 deletions
diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx
index 118cbfb..c6097c4 100644
--- a/Source/cmFLTKWrapUICommand.cxx
+++ b/Source/cmFLTKWrapUICommand.cxx
@@ -136,8 +136,18 @@ void cmFLTKWrapUICommand::FinalPass()
}
if (!found)
{
- std::string msg = "In CMake 2.2 the FLTK_WRAP_UI command sets a variable to the list of source files that should be added to your executable or library. It appears that you have not added these source files to your target. You should change your CMakeLists.txt file to directly add the generated files to the target. For example FTLK_WRAP_UI(foo src1 src2 src3) will create a variable named foo_FLTK_UI_SRCS that contains the list of sources to add to your target when you call ADD_LIBRARY or ADD_EXECUTABLE. For now CMake 2.2 will add the sources to your target for you as was done in CMake 2.0 and earlier. In the future this may become an error. ";
- msg += "The problem was found while processing the source directory: ";
+ std::string msg =
+ "In CMake 2.2 the FLTK_WRAP_UI command sets a variable to the list of "
+ "source files that should be added to your executable or library. It "
+ "appears that you have not added these source files to your target. You "
+ "should change your CMakeLists.txt file to directly add the generated "
+ "files to the target. For example FTLK_WRAP_UI(foo src1 src2 src3) "
+ "will create a variable named foo_FLTK_UI_SRCS that contains the list "
+ "of sources to add to your target when you call ADD_LIBRARY or "
+ "ADD_EXECUTABLE. For now CMake will add the sources to your target "
+ "for you as was done in CMake 2.0 and earlier. In the future this may "
+ "become an error.";
+ msg +="The problem was found while processing the source directory: ";
msg += this->Makefile->GetStartDirectory();
cmSystemTools::Message(msg.c_str(),"Warning");
// first we add the rules for all the .fl to .h and .cxx files
@@ -146,8 +156,8 @@ void cmFLTKWrapUICommand::FinalPass()
// Generate code for all the .fl files
for(size_t classNum = 0; classNum < lastHeadersClass; classNum++)
{
- this->Makefile->GetTargets()[this->Target].GetSourceFiles().push_back(
- this->GeneratedSourcesClasses[classNum]);
+ this->Makefile->GetTargets()[this->Target].GetSourceFiles().
+ push_back(this->GeneratedSourcesClasses[classNum]);
}
}
}
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;
diff --git a/Source/cmFileCommand.h b/Source/cmFileCommand.h
index 926a0ad..249cbb6 100644
--- a/Source/cmFileCommand.h
+++ b/Source/cmFileCommand.h
@@ -68,7 +68,8 @@ public:
" FILE(APPEND filename \"message to write\"... )\n"
" FILE(READ filename variable)\n"
" FILE(GLOB variable [RELATIVE path] [globbing expressions]...)\n"
- " FILE(GLOB_RECURSE variable [RELATIVE path] [globbing expressions]...)\n"
+ " FILE(GLOB_RECURSE variable [RELATIVE path] \n"
+ " [globbing expressions]...)\n"
" FILE(REMOVE [directory]...)\n"
" FILE(REMOVE_RECURSE [directory]...)\n"
" FILE(MAKE_DIRECTORY [directory]...)\n"
diff --git a/Source/cmFileTimeComparison.cxx b/Source/cmFileTimeComparison.cxx
index e0e3c86..66a1771 100644
--- a/Source/cmFileTimeComparison.cxx
+++ b/Source/cmFileTimeComparison.cxx
@@ -84,7 +84,8 @@ bool cmFileTimeComparisonInternal::Stat(const char* fname,
return false;
}
#else
- // Windows version. Get the modification time from extended file attributes.
+ // Windows version. Get the modification time from extended file
+ // attributes.
WIN32_FILE_ATTRIBUTE_DATA fdata;
if(!GetFileAttributesEx(fname, GetFileExInfoStandard, &fdata))
{
@@ -116,13 +117,15 @@ cmFileTimeComparison::~cmFileTimeComparison()
}
//----------------------------------------------------------------------------
-bool cmFileTimeComparison::FileTimeCompare(const char* f1, const char* f2, int* result)
+bool cmFileTimeComparison::FileTimeCompare(const char* f1,
+ const char* f2, int* result)
{
return this->Internals->FileTimeCompare(f1, f2, result);
}
//----------------------------------------------------------------------------
-int cmFileTimeComparisonInternal::Compare(cmFileTimeComparison_Type* s1, cmFileTimeComparison_Type* s2)
+int cmFileTimeComparisonInternal::Compare(cmFileTimeComparison_Type* s1,
+ cmFileTimeComparison_Type* s2)
{
#if !defined(_WIN32) || defined(__CYGWIN__)
# if cmsys_STAT_HAS_ST_MTIM
diff --git a/Source/cmFindBase.cxx b/Source/cmFindBase.cxx
index 8600fa8..e2fc963 100644
--- a/Source/cmFindBase.cxx
+++ b/Source/cmFindBase.cxx
@@ -106,8 +106,9 @@ cmFindBase::cmFindBase()
" libraries or headers.\n"
" \"ONLY\" - Only try to find frameworks.\n"
" \"NEVER\". - Never try to find frameworks.\n"
- "On Darwin or systems supporting OSX Application Bundles, the cmake variable"
- " CMAKE_FIND_APPBUNDLE can be set to empty or one of the following:\n"
+ "On Darwin or systems supporting OSX Application Bundles, the cmake "
+ "variable CMAKE_FIND_APPBUNDLE can be set to empty or one of the "
+ "following:\n"
" \"FIRST\" - Try to find application bundles before standard\n"
" programs. This is the default on Darwin.\n"
" \"LAST\" - Try to find application bundles after standard\n"
@@ -358,7 +359,8 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
}
else if(this->Names.size() == 1)
{
- this->VariableDocumentation += "the " + this->Names[0] + " library be found";
+ this->VariableDocumentation += "the "
+ + this->Names[0] + " library be found";
}
else
{
@@ -367,7 +369,8 @@ bool cmFindBase::ParseArguments(std::vector<std::string> const& argsIn)
{
this->VariableDocumentation += ", " + this->Names[j];
}
- this->VariableDocumentation += " or " + this->Names[this->Names.size() - 1] + " libraries be found";
+ this->VariableDocumentation += " or "
+ + this->Names[this->Names.size() - 1] + " libraries be found";
}
}
@@ -400,24 +403,28 @@ void cmFindBase::ExpandPaths(std::vector<std::string> userPaths)
{
this->AddAppBundlePaths();
}
- if(!this->NoCMakeEnvironmentPath && !(this->SearchFrameworkOnly || this->SearchAppBundleOnly))
+ if(!this->NoCMakeEnvironmentPath &&
+ !(this->SearchFrameworkOnly || this->SearchAppBundleOnly))
{
// Add CMAKE_*_PATH environment variables
this->AddEnvironmentVairables();
}
- if(!this->NoCMakePath && !(this->SearchFrameworkOnly || this->SearchAppBundleOnly))
+ if(!this->NoCMakePath &&
+ !(this->SearchFrameworkOnly || this->SearchAppBundleOnly))
{
// Add CMake varibles of the same name as the previous environment
// varibles CMAKE_*_PATH to be used most of the time with -D
// command line options
this->AddCMakeVairables();
}
- if(!this->NoSystemEnvironmentPath && !(this->SearchFrameworkOnly || this->SearchAppBundleOnly))
+ if(!this->NoSystemEnvironmentPath &&
+ !(this->SearchFrameworkOnly || this->SearchAppBundleOnly))
{
// add System environment PATH and (LIB or INCLUDE)
this->AddSystemEnvironmentVairables();
}
- if(!this->NoCMakeSystemPath && !(this->SearchFrameworkOnly || this->SearchAppBundleOnly))
+ if(!this->NoCMakeSystemPath &&
+ !(this->SearchFrameworkOnly || this->SearchAppBundleOnly))
{
// Add CMAKE_SYSTEM_*_PATH variables which are defined in platform files
this->AddCMakeSystemVariables();
@@ -569,14 +576,16 @@ void cmFindBase::AddCMakeSystemVariables()
}
if(this->SearchAppBundleLast)
{
- if(const char* path = this->Makefile->GetDefinition("CMAKE_SYSTEM_APPBUNDLE_PATH"))
+ if(const char* path =
+ this->Makefile->GetDefinition("CMAKE_SYSTEM_APPBUNDLE_PATH"))
{
cmSystemTools::ExpandListArgument(path, this->SearchPaths);
}
}
if(this->SearchFrameworkLast)
{
- if(const char* path = this->Makefile->GetDefinition("CMAKE_SYSTEM_FRAMEWORK_PATH"))
+ if(const char* path =
+ this->Makefile->GetDefinition("CMAKE_SYSTEM_FRAMEWORK_PATH"))
{
cmSystemTools::ExpandListArgument(path, this->SearchPaths);
}
@@ -601,7 +610,8 @@ void cmFindBase::ExpandRegistryAndCleanPath()
cmSystemTools::ConvertToUnixSlashes(*i);
// copy each finalPath combined with SearchPathSuffixes
// to the SearchPaths ivar
- for(std::vector<std::string>::iterator j = this->SearchPathSuffixes.begin();
+ for(std::vector<std::string>::iterator j =
+ this->SearchPathSuffixes.begin();
j != this->SearchPathSuffixes.end(); ++j)
{
std::string p = *i + std::string("/") + *j;
@@ -631,11 +641,14 @@ void cmFindBase::PrintFindStuff()
std::cerr << "SearchAppBundleOnly: " << this->SearchAppBundleOnly << "\n";
std::cerr << "SearchAppBundleFirst: " << this->SearchAppBundleFirst << "\n";
std::cerr << "VariableName " << this->VariableName << "\n";
- std::cerr << "VariableDocumentation " << this->VariableDocumentation << "\n";
+ std::cerr << "VariableDocumentation "
+ << this->VariableDocumentation << "\n";
std::cerr << "NoDefaultPath " << this->NoDefaultPath << "\n";
- std::cerr << "NoCMakeEnvironmentPath " << this->NoCMakeEnvironmentPath << "\n";
+ std::cerr << "NoCMakeEnvironmentPath "
+ << this->NoCMakeEnvironmentPath << "\n";
std::cerr << "NoCMakePath " << this->NoCMakePath << "\n";
- std::cerr << "NoSystemEnvironmentPath " << this->NoSystemEnvironmentPath << "\n";
+ std::cerr << "NoSystemEnvironmentPath "
+ << this->NoSystemEnvironmentPath << "\n";
std::cerr << "NoCMakeSystemPath " << this->NoCMakeSystemPath << "\n";
std::cerr << "EnvironmentPath " << this->EnvironmentPath << "\n";
std::cerr << "CMakePathName " << this->CMakePathName << "\n";
@@ -670,7 +683,8 @@ bool cmFindBase::CheckForVariableInCache()
if(cacheValue)
{
cmCacheManager::CacheIterator it =
- this->Makefile->GetCacheManager()->GetCacheIterator(this->VariableName.c_str());
+ this->Makefile->GetCacheManager()->
+ GetCacheIterator(this->VariableName.c_str());
if(!it.IsAtEnd())
{
const char* hs = it.GetProperty("HELPSTRING");
diff --git a/Source/cmFindFileCommand.cxx b/Source/cmFindFileCommand.cxx
index b268297..04d0af7 100644
--- a/Source/cmFindFileCommand.cxx
+++ b/Source/cmFindFileCommand.cxx
@@ -23,7 +23,8 @@ cmFindFileCommand::cmFindFileCommand()
cmSystemTools::ReplaceString(this->GenericDocumentation,
"FIND_PATH", "FIND_FILE");
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "directory containing the named file", "full path to named file");
+ "directory containing the named file",
+ "full path to named file");
cmSystemTools::ReplaceString(this->GenericDocumentation,
"file in a directory", "full path to a file");
}
diff --git a/Source/cmFindLibraryCommand.cxx b/Source/cmFindLibraryCommand.cxx
index 7ddad5e..1cac120 100644
--- a/Source/cmFindLibraryCommand.cxx
+++ b/Source/cmFindLibraryCommand.cxx
@@ -26,7 +26,8 @@ cmFindLibraryCommand::cmFindLibraryCommand()
cmSystemTools::ReplaceString(this->GenericDocumentation,
"XXX_SYSTEM", "LIB");
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "CMAKE_SYSTEM_XXX_PATH", "CMAKE_SYSTEM_LIBRARY_PATH");
+ "CMAKE_SYSTEM_XXX_PATH",
+ "CMAKE_SYSTEM_LIBRARY_PATH");
cmSystemTools::ReplaceString(this->GenericDocumentation,
"SEARCH_XXX_DESC", "library");
cmSystemTools::ReplaceString(this->GenericDocumentation,
@@ -80,11 +81,13 @@ bool cmFindLibraryCommand::InitialPass(std::vector<std::string> const& argsIn)
void cmFindLibraryCommand::AddLib64Paths()
{
- if(!this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->GetLanguageEnabled("C"))
+ if(!this->Makefile->GetLocalGenerator()->GetGlobalGenerator()->
+ GetLanguageEnabled("C"))
{
return;
}
- std::string voidsize = this->Makefile->GetRequiredDefinition("CMAKE_SIZEOF_VOID_P");
+ std::string voidsize =
+ this->Makefile->GetRequiredDefinition("CMAKE_SIZEOF_VOID_P");
int size = atoi(voidsize.c_str());
std::vector<std::string> path64;
if(size != 8)
diff --git a/Source/cmFindPackageCommand.cxx b/Source/cmFindPackageCommand.cxx
index ef2777f..00a4c3d 100644
--- a/Source/cmFindPackageCommand.cxx
+++ b/Source/cmFindPackageCommand.cxx
@@ -202,10 +202,12 @@ bool cmFindPackageCommand::InitialPass(std::vector<std::string> const& args)
{
// Listfiles will be looking for the capitalized version of the
// name. Provide it.
- this->Makefile->AddDefinition(upperDir.c_str(),
- this->Makefile->GetDefinition(this->Variable.c_str()));
- this->Makefile->AddDefinition(upperFound.c_str(),
- this->Makefile->GetDefinition(foundVar.c_str()));
+ this->Makefile->AddDefinition
+ (upperDir.c_str(),
+ this->Makefile->GetDefinition(this->Variable.c_str()));
+ this->Makefile->AddDefinition
+ (upperFound.c_str(),
+ this->Makefile->GetDefinition(foundVar.c_str()));
}
#ifdef CMAKE_BUILD_WITH_CMAKE
@@ -297,8 +299,8 @@ bool cmFindPackageCommand::FindConfig()
for(int i=1; i <= 10; ++i)
{
cmOStringStream r;
- r << "[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\Settings\\StartPath;WhereBuild"
- << i << "]";
+ r << "[HKEY_CURRENT_USER\\Software\\Kitware\\CMakeSetup\\"
+ "Settings\\StartPath;WhereBuild" << i << "]";
std::string entry = r.str();
cmSystemTools::ExpandRegistryValues(entry);
cmSystemTools::ConvertToUnixSlashes(entry);
diff --git a/Source/cmFindPathCommand.cxx b/Source/cmFindPathCommand.cxx
index 2845e86..05ac43c 100644
--- a/Source/cmFindPathCommand.cxx
+++ b/Source/cmFindPathCommand.cxx
@@ -29,9 +29,11 @@ cmFindPathCommand::cmFindPathCommand()
cmSystemTools::ReplaceString(this->GenericDocumentation,
"XXX_SYSTEM", "INCLUDE");
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "CMAKE_SYSTEM_XXX_PATH", "CMAKE_SYSTEM_INCLUDE_PATH");
+ "CMAKE_SYSTEM_XXX_PATH",
+ "CMAKE_SYSTEM_INCLUDE_PATH");
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "SEARCH_XXX_DESC", "directory containing the named file");
+ "SEARCH_XXX_DESC",
+ "directory containing the named file");
cmSystemTools::ReplaceString(this->GenericDocumentation,
"SEARCH_XXX", "file in a directory");
this->ExtraDocAdded = false;
@@ -44,9 +46,11 @@ const char* cmFindPathCommand::GetFullDocumentation()
this->GenericDocumentation +=
"\n"
"When searching for frameworks, if the file is specified as "
- "A/b.h, then the framework search will look for A.framework/Headers/b.h. "
+ "A/b.h, then the framework search will look for "
+ "A.framework/Headers/b.h. "
"If that is found the path will be set to the path to the framework. "
- "CMake will convert this to the correct -F option to include the file. ";
+ "CMake will convert this to the correct -F option to include the "
+ "file. ";
this->ExtraDocAdded = true;
}
return this->GenericDocumentation.c_str();
@@ -109,20 +113,21 @@ bool cmFindPathCommand::InitialPass(std::vector<std::string> const& argsIn)
}
if(result.size() != 0)
{
- this->Makefile->AddCacheDefinition(this->VariableName.c_str(),
- result.c_str(),
- this->VariableDocumentation.c_str(),
- (this->IncludeFileInPath) ?
- cmCacheManager::FILEPATH :cmCacheManager::PATH);
+ this->Makefile->AddCacheDefinition
+ (this->VariableName.c_str(), result.c_str(),
+ this->VariableDocumentation.c_str(),
+ (this->IncludeFileInPath) ?
+ cmCacheManager::FILEPATH :cmCacheManager::PATH);
return true;
}
}
}
- this->Makefile->AddCacheDefinition(this->VariableName.c_str(),
- (this->VariableName + "-NOTFOUND").c_str(),
- this->VariableDocumentation.c_str(),
- (this->IncludeFileInPath) ?
- cmCacheManager::FILEPATH :cmCacheManager::PATH);
+ this->Makefile->AddCacheDefinition
+ (this->VariableName.c_str(),
+ (this->VariableName + "-NOTFOUND").c_str(),
+ this->VariableDocumentation.c_str(),
+ (this->IncludeFileInPath) ?
+ cmCacheManager::FILEPATH :cmCacheManager::PATH);
return true;
}
@@ -140,7 +145,8 @@ std::string cmFindPathCommand::FindHeaderInFramework(std::string& file,
// remove the name from the slash;
fileName = fileName.substr(pos+1);
frameWorkName = file;
- frameWorkName = frameWorkName.substr(0, frameWorkName.size()-fileName.size()-1);
+ frameWorkName =
+ frameWorkName.substr(0, frameWorkName.size()-fileName.size()-1);
// if the framework has a path in it then just use the filename
if(frameWorkName.find("/") != frameWorkName.npos)
{
diff --git a/Source/cmFindProgramCommand.cxx b/Source/cmFindProgramCommand.cxx
index 2e94801..475d3be 100644
--- a/Source/cmFindProgramCommand.cxx
+++ b/Source/cmFindProgramCommand.cxx
@@ -31,7 +31,8 @@ cmFindProgramCommand::cmFindProgramCommand()
cmSystemTools::ReplaceString(this->GenericDocumentation,
"XXX_SYSTEM", "");
cmSystemTools::ReplaceString(this->GenericDocumentation,
- "CMAKE_SYSTEM_XXX_PATH", "CMAKE_SYSTEM_PROGRAM_PATH");
+ "CMAKE_SYSTEM_XXX_PATH",
+ "CMAKE_SYSTEM_PROGRAM_PATH");
cmSystemTools::ReplaceString(this->GenericDocumentation,
"SEARCH_XXX_DESC", "program");
cmSystemTools::ReplaceString(this->GenericDocumentation,
@@ -88,14 +89,17 @@ std::string cmFindProgramCommand::FindProgram(std::vector<std::string> names)
return program;
}
-std::string cmFindProgramCommand::FindAppBundle(std::vector<std::string> names)
+std::string cmFindProgramCommand
+::FindAppBundle(std::vector<std::string> names)
{
for(std::vector<std::string>::const_iterator name = names.begin();
name != names.end() ; ++name)
{
std::string appName = *name + std::string(".app");
- std::string appPath = cmSystemTools::FindDirectory(appName.c_str(), this->SearchPaths, true);
+ std::string appPath = cmSystemTools::FindDirectory(appName.c_str(),
+ this->SearchPaths,
+ true);
if ( !appPath.empty() )
{
@@ -121,10 +125,12 @@ std::string cmFindProgramCommand::GetBundleExecutable(std::string bundlePath)
// Get a CFString of the app bundle path
// XXX - Is it safe to assume everything is in UTF8?
- CFStringRef bundlePathCFS = CFStringCreateWithCString(kCFAllocatorDefault ,
- bundlePath.c_str(), kCFStringEncodingUTF8 );
+ CFStringRef bundlePathCFS =
+ CFStringCreateWithCString(kCFAllocatorDefault ,
+ bundlePath.c_str(), kCFStringEncodingUTF8 );
- // Make a CFURLRef from the CFString representation of the bundle’s path.
+ // Make a CFURLRef from the CFString representation of the
+ // bundle’s path.
CFURLRef bundleURL = CFURLCreateWithFileSystemPath(kCFAllocatorDefault,
bundlePathCFS,
kCFURLPOSIXPathStyle,
@@ -142,7 +148,8 @@ std::string cmFindProgramCommand::GetBundleExecutable(std::string bundlePath)
char buffer[MAX_OSX_PATH_SIZE];
// Convert the CFString to a C string
- CFStringGetCString( CFURLGetString(executableURL), buffer, MAX_OSX_PATH_SIZE, kCFStringEncodingUTF8 );
+ CFStringGetCString( CFURLGetString(executableURL), buffer,
+ MAX_OSX_PATH_SIZE, kCFStringEncodingUTF8 );
// And finally to a c++ string
executable = bundlePath + "/Contents/MacOS/" + std::string(buffer);
diff --git a/Source/cmForEachCommand.cxx b/Source/cmForEachCommand.cxx
index e2dce93c..fe53b12 100644
--- a/Source/cmForEachCommand.cxx
+++ b/Source/cmForEachCommand.cxx
@@ -87,7 +87,9 @@ ShouldRemove(const cmListFileFunction& lff, cmMakefile& mf)
void cmForEachFunctionBlocker::
ScopeEnded(cmMakefile &mf)
{
- cmSystemTools::Error("The end of a CMakeLists file was reached with a FOREACH statement that was not closed properly. Within the directory: ",
+ cmSystemTools::Error("The end of a CMakeLists file was reached with a "
+ "FOREACH statement that was not closed properly. "
+ "Within the directory: ",
mf.GetCurrentDirectory());
}