Merge topic 'add-whitespace'
2331b57
Add whitespace after colons in error messages.
This commit is contained in:
commit
059be4ba3b
|
@ -499,7 +499,7 @@ bool cmComputeLinkInformation::Compute()
|
||||||
if(!this->LinkLanguage)
|
if(!this->LinkLanguage)
|
||||||
{
|
{
|
||||||
cmSystemTools::
|
cmSystemTools::
|
||||||
Error("CMake can not determine linker language for target:",
|
Error("CMake can not determine linker language for target: ",
|
||||||
this->Target->GetName());
|
this->Target->GetName());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -415,7 +415,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
|
||||||
{
|
{
|
||||||
if(!mf->ReadListFile(0,fpath.c_str()))
|
if(!mf->ReadListFile(0,fpath.c_str()))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Could not find cmake module file:",
|
cmSystemTools::Error("Could not find cmake module file: ",
|
||||||
fpath.c_str());
|
fpath.c_str());
|
||||||
}
|
}
|
||||||
// if this file was found then the language was already determined
|
// if this file was found then the language was already determined
|
||||||
|
@ -445,7 +445,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
|
||||||
mf->GetModulesFile(determineCompiler.c_str());
|
mf->GetModulesFile(determineCompiler.c_str());
|
||||||
if(!mf->ReadListFile(0,determineFile.c_str()))
|
if(!mf->ReadListFile(0,determineFile.c_str()))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Could not find cmake module file:",
|
cmSystemTools::Error("Could not find cmake module file: ",
|
||||||
determineFile.c_str());
|
determineFile.c_str());
|
||||||
}
|
}
|
||||||
needTestLanguage[lang] = true;
|
needTestLanguage[lang] = true;
|
||||||
|
@ -479,7 +479,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
|
||||||
fpath += "Compiler.cmake";
|
fpath += "Compiler.cmake";
|
||||||
if(!mf->ReadListFile(0,fpath.c_str()))
|
if(!mf->ReadListFile(0,fpath.c_str()))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Could not find cmake module file:",
|
cmSystemTools::Error("Could not find cmake module file: ",
|
||||||
fpath.c_str());
|
fpath.c_str());
|
||||||
}
|
}
|
||||||
this->SetLanguageEnabledFlag(lang, mf);
|
this->SetLanguageEnabledFlag(lang, mf);
|
||||||
|
@ -498,7 +498,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
|
||||||
fpath = mf->GetModulesFile("CMakeSystemSpecificInformation.cmake");
|
fpath = mf->GetModulesFile("CMakeSystemSpecificInformation.cmake");
|
||||||
if(!mf->ReadListFile(0,fpath.c_str()))
|
if(!mf->ReadListFile(0,fpath.c_str()))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Could not find cmake module file:",
|
cmSystemTools::Error("Could not find cmake module file: ",
|
||||||
fpath.c_str());
|
fpath.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -524,12 +524,12 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
|
||||||
std::string informationFile = mf->GetModulesFile(fpath.c_str());
|
std::string informationFile = mf->GetModulesFile(fpath.c_str());
|
||||||
if (informationFile.empty())
|
if (informationFile.empty())
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Could not find cmake module file:",
|
cmSystemTools::Error("Could not find cmake module file: ",
|
||||||
fpath.c_str());
|
fpath.c_str());
|
||||||
}
|
}
|
||||||
else if(!mf->ReadListFile(0, informationFile.c_str()))
|
else if(!mf->ReadListFile(0, informationFile.c_str()))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Could not process cmake module file:",
|
cmSystemTools::Error("Could not process cmake module file: ",
|
||||||
informationFile.c_str());
|
informationFile.c_str());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -568,7 +568,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
|
||||||
std::string ifpath = mf->GetModulesFile(testLang.c_str());
|
std::string ifpath = mf->GetModulesFile(testLang.c_str());
|
||||||
if(!mf->ReadListFile(0,ifpath.c_str()))
|
if(!mf->ReadListFile(0,ifpath.c_str()))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Could not find cmake module file:",
|
cmSystemTools::Error("Could not find cmake module file: ",
|
||||||
ifpath.c_str());
|
ifpath.c_str());
|
||||||
}
|
}
|
||||||
std::string compilerWorks = "CMAKE_";
|
std::string compilerWorks = "CMAKE_";
|
||||||
|
|
|
@ -1719,7 +1719,7 @@ void cmGlobalXCodeGenerator::CreateBuildSettings(cmTarget& target,
|
||||||
else if(binary)
|
else if(binary)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not determine linker language for target:",
|
("CMake can not determine linker language for target: ",
|
||||||
target.GetName());
|
target.GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -761,7 +761,7 @@ void cmLocalGenerator
|
||||||
if(!llang)
|
if(!llang)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not determine linker language for target:",
|
("CMake can not determine linker language for target: ",
|
||||||
target.Target->GetName());
|
target.Target->GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1600,7 +1600,7 @@ void cmLocalGenerator::GetTargetFlags(std::string& linkLibs,
|
||||||
if(!linkLanguage)
|
if(!linkLanguage)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not determine linker language for target:",
|
("CMake can not determine linker language for target: ",
|
||||||
target->Target->GetName());
|
target->Target->GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1228,7 +1228,7 @@ void cmLocalVisualStudio6Generator
|
||||||
if(!linkLanguage)
|
if(!linkLanguage)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not determine linker language for target:",
|
("CMake can not determine linker language for target: ",
|
||||||
target.GetName());
|
target.GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -1649,7 +1649,7 @@ void cmLocalVisualStudio6Generator
|
||||||
if(!linkLanguage)
|
if(!linkLanguage)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not determine linker language for target:",
|
("CMake can not determine linker language for target: ",
|
||||||
target.GetName());
|
target.GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -686,7 +686,7 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
|
||||||
if(!linkLanguage)
|
if(!linkLanguage)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not determine linker language for target:",
|
("CMake can not determine linker language for target: ",
|
||||||
target.GetName());
|
target.GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -71,7 +71,8 @@ cmNinjaNormalTargetGenerator::~cmNinjaNormalTargetGenerator()
|
||||||
void cmNinjaNormalTargetGenerator::Generate()
|
void cmNinjaNormalTargetGenerator::Generate()
|
||||||
{
|
{
|
||||||
if (!this->TargetLinkLanguage) {
|
if (!this->TargetLinkLanguage) {
|
||||||
cmSystemTools::Error("CMake can not determine linker language for target:",
|
cmSystemTools::Error("CMake can not determine linker language for "
|
||||||
|
"target: ",
|
||||||
this->GetTarget()->GetName());
|
this->GetTarget()->GetName());
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
@ -411,7 +411,7 @@ bool cmQtAutomoc::ReadAutomocInfoFile(cmMakefile* makefile,
|
||||||
|
|
||||||
if (!makefile->ReadListFile(0, filename.c_str()))
|
if (!makefile->ReadListFile(0, filename.c_str()))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Error processing file:", filename.c_str());
|
cmSystemTools::Error("Error processing file: ", filename.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1951,7 +1951,7 @@ bool extract_tar(const char* outFileName, bool verbose,
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Problem with archive_write_header(): ",
|
cmSystemTools::Error("Problem with archive_write_header(): ",
|
||||||
archive_error_string(ext));
|
archive_error_string(ext));
|
||||||
cmSystemTools::Error("Current file:",
|
cmSystemTools::Error("Current file: ",
|
||||||
archive_entry_pathname(entry));
|
archive_entry_pathname(entry));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1249,7 +1249,7 @@ bool cmVisualStudio10TargetGenerator::ComputeClOptions(
|
||||||
if(!linkLanguage)
|
if(!linkLanguage)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not determine linker language for target:",
|
("CMake can not determine linker language for target: ",
|
||||||
this->Name.c_str());
|
this->Name.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1429,7 +1429,7 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
||||||
if(!linkLanguage)
|
if(!linkLanguage)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not determine linker language for target:",
|
("CMake can not determine linker language for target: ",
|
||||||
this->Name.c_str());
|
this->Name.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -1511,7 +1511,7 @@ cmVisualStudio10TargetGenerator::ComputeLinkOptions(std::string const& config)
|
||||||
if(!pcli)
|
if(!pcli)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error
|
cmSystemTools::Error
|
||||||
("CMake can not compute cmComputeLinkInformation for target:",
|
("CMake can not compute cmComputeLinkInformation for target: ",
|
||||||
this->Name.c_str());
|
this->Name.c_str());
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -549,7 +549,7 @@ void cmake::ReadListFile(const std::vector<std::string>& args,
|
||||||
}
|
}
|
||||||
if (!lg->GetMakefile()->ReadListFile(0, path))
|
if (!lg->GetMakefile()->ReadListFile(0, path))
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Error processing file:", path);
|
cmSystemTools::Error("Error processing file: ", path);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -245,7 +245,7 @@ if(BUILD_TESTING)
|
||||||
ADD_TEST_MACRO(CompileOptions CompileOptions)
|
ADD_TEST_MACRO(CompileOptions CompileOptions)
|
||||||
ADD_TEST_MACRO(CompatibleInterface CompatibleInterface)
|
ADD_TEST_MACRO(CompatibleInterface CompatibleInterface)
|
||||||
set_tests_properties(EmptyLibrary PROPERTIES
|
set_tests_properties(EmptyLibrary PROPERTIES
|
||||||
PASS_REGULAR_EXPRESSION "CMake Error: CMake can not determine linker language for target:test")
|
PASS_REGULAR_EXPRESSION "CMake Error: CMake can not determine linker language for target: test")
|
||||||
ADD_TEST_MACRO(CrossCompile CrossCompile)
|
ADD_TEST_MACRO(CrossCompile CrossCompile)
|
||||||
set_tests_properties(CrossCompile PROPERTIES
|
set_tests_properties(CrossCompile PROPERTIES
|
||||||
PASS_REGULAR_EXPRESSION "TRY_RUN.. invoked in cross-compiling mode")
|
PASS_REGULAR_EXPRESSION "TRY_RUN.. invoked in cross-compiling mode")
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
CMake Error: CMake can not determine linker language for target:NoLang
|
CMake Error: CMake can not determine linker language for target: NoLang
|
||||||
|
|
Loading…
Reference in New Issue