|
|
@@ -2511,11 +2511,14 @@ int cmake::ActualConfigure()
|
|
|
cmValue genName = this->State->GetInitializedCacheValue("CMAKE_GENERATOR");
|
|
|
if (genName) {
|
|
|
if (!this->GlobalGenerator->MatchesGeneratorName(*genName)) {
|
|
|
- std::string message = cmStrCat(
|
|
|
- "Error: generator : ", this->GlobalGenerator->GetName(), '\n',
|
|
|
- "Does not match the generator used previously: ", *genName, '\n',
|
|
|
- "Either remove the CMakeCache.txt file and CMakeFiles "
|
|
|
- "directory or choose a different binary directory.");
|
|
|
+ std::string message =
|
|
|
+ cmStrCat("Error: generator : ", this->GlobalGenerator->GetName(),
|
|
|
+ "\n"
|
|
|
+ "Does not match the generator used previously: ",
|
|
|
+ *genName,
|
|
|
+ "\n"
|
|
|
+ "Either remove the CMakeCache.txt file and CMakeFiles "
|
|
|
+ "directory or choose a different binary directory.");
|
|
|
cmSystemTools::Error(message);
|
|
|
return -2;
|
|
|
}
|
|
|
@@ -2541,11 +2544,14 @@ int cmake::ActualConfigure()
|
|
|
if (cmValue instance =
|
|
|
this->State->GetInitializedCacheValue("CMAKE_GENERATOR_INSTANCE")) {
|
|
|
if (this->GeneratorInstanceSet && this->GeneratorInstance != *instance) {
|
|
|
- std::string message = cmStrCat(
|
|
|
- "Error: generator instance: ", this->GeneratorInstance, '\n',
|
|
|
- "Does not match the instance used previously: ", *instance, '\n',
|
|
|
- "Either remove the CMakeCache.txt file and CMakeFiles "
|
|
|
- "directory or choose a different binary directory.");
|
|
|
+ std::string message =
|
|
|
+ cmStrCat("Error: generator instance: ", this->GeneratorInstance,
|
|
|
+ "\n"
|
|
|
+ "Does not match the instance used previously: ",
|
|
|
+ *instance,
|
|
|
+ "\n"
|
|
|
+ "Either remove the CMakeCache.txt file and CMakeFiles "
|
|
|
+ "directory or choose a different binary directory.");
|
|
|
cmSystemTools::Error(message);
|
|
|
return -2;
|
|
|
}
|
|
|
@@ -2559,11 +2565,14 @@ int cmake::ActualConfigure()
|
|
|
this->State->GetInitializedCacheValue("CMAKE_GENERATOR_PLATFORM")) {
|
|
|
if (this->GeneratorPlatformSet &&
|
|
|
this->GeneratorPlatform != *platformName) {
|
|
|
- std::string message = cmStrCat(
|
|
|
- "Error: generator platform: ", this->GeneratorPlatform, '\n',
|
|
|
- "Does not match the platform used previously: ", *platformName, '\n',
|
|
|
- "Either remove the CMakeCache.txt file and CMakeFiles "
|
|
|
- "directory or choose a different binary directory.");
|
|
|
+ std::string message =
|
|
|
+ cmStrCat("Error: generator platform: ", this->GeneratorPlatform,
|
|
|
+ "\n"
|
|
|
+ "Does not match the platform used previously: ",
|
|
|
+ *platformName,
|
|
|
+ "\n"
|
|
|
+ "Either remove the CMakeCache.txt file and CMakeFiles "
|
|
|
+ "directory or choose a different binary directory.");
|
|
|
cmSystemTools::Error(message);
|
|
|
return -2;
|
|
|
}
|
|
|
@@ -2576,8 +2585,11 @@ int cmake::ActualConfigure()
|
|
|
this->State->GetInitializedCacheValue("CMAKE_GENERATOR_TOOLSET")) {
|
|
|
if (this->GeneratorToolsetSet && this->GeneratorToolset != *tsName) {
|
|
|
std::string message =
|
|
|
- cmStrCat("Error: generator toolset: ", this->GeneratorToolset, '\n',
|
|
|
- "Does not match the toolset used previously: ", *tsName, '\n',
|
|
|
+ cmStrCat("Error: generator toolset: ", this->GeneratorToolset,
|
|
|
+ "\n"
|
|
|
+ "Does not match the toolset used previously: ",
|
|
|
+ *tsName,
|
|
|
+ "\n"
|
|
|
"Either remove the CMakeCache.txt file and CMakeFiles "
|
|
|
"directory or choose a different binary directory.");
|
|
|
cmSystemTools::Error(message);
|
|
|
@@ -2692,9 +2704,9 @@ int cmake::ActualConfigure()
|
|
|
if (this->Instrumentation->HasQuery()) {
|
|
|
std::string launcher;
|
|
|
if (mf->IsOn("CTEST_USE_LAUNCHERS")) {
|
|
|
- launcher =
|
|
|
- cmStrCat("\"", cmSystemTools::GetCTestCommand(), "\" --launch ",
|
|
|
- "--current-build-dir <CMAKE_CURRENT_BINARY_DIR> ");
|
|
|
+ launcher = cmStrCat("\"", cmSystemTools::GetCTestCommand(),
|
|
|
+ "\" --launch "
|
|
|
+ "--current-build-dir <CMAKE_CURRENT_BINARY_DIR> ");
|
|
|
} else {
|
|
|
launcher =
|
|
|
cmStrCat("\"", cmSystemTools::GetCTestCommand(), "\" --instrument ");
|
|
|
@@ -2705,13 +2717,14 @@ int cmake::ActualConfigure()
|
|
|
this->State->SetGlobalProperty(
|
|
|
"RULE_LAUNCH_COMPILE",
|
|
|
cmStrCat(
|
|
|
- launcher, "--command-type compile", common_args, "--config <CONFIG> ",
|
|
|
+ launcher, "--command-type compile", common_args,
|
|
|
+ "--config <CONFIG> "
|
|
|
"--output <OBJECT> --source <SOURCE> --language <LANGUAGE> -- "));
|
|
|
this->State->SetGlobalProperty(
|
|
|
"RULE_LAUNCH_LINK",
|
|
|
cmStrCat(
|
|
|
launcher, "--command-type link", common_args,
|
|
|
- "--output <TARGET> --target-type <TARGET_TYPE> --config <CONFIG> ",
|
|
|
+ "--output <TARGET> --target-type <TARGET_TYPE> --config <CONFIG> "
|
|
|
"--language <LANGUAGE> --target-labels \"<TARGET_LABELS>\" -- "));
|
|
|
this->State->SetGlobalProperty(
|
|
|
"RULE_LAUNCH_CUSTOM",
|