Commit 3ca44029 authored by Florian Maushart's avatar Florian Maushart Committed by Brad King

ctest: Fix --build-and-test without --build-target on Xcode

parent cb6c233e
...@@ -348,11 +348,13 @@ void cmGlobalXCodeGenerator::GenerateBuildCommand( ...@@ -348,11 +348,13 @@ void cmGlobalXCodeGenerator::GenerateBuildCommand(
makeCommand.add( makeCommand.add(
this->SelectMakeProgram(makeProgram, this->GetXcodeBuildCommand())); this->SelectMakeProgram(makeProgram, this->GetXcodeBuildCommand()));
if (!projectName.empty()) {
makeCommand.add("-project"); makeCommand.add("-project");
std::string projectArg = projectName; std::string projectArg = projectName;
projectArg += ".xcode"; projectArg += ".xcode";
projectArg += "proj"; projectArg += "proj";
makeCommand.add(projectArg); makeCommand.add(projectArg);
}
bool clean = false; bool clean = false;
std::string realTarget = targetName; std::string realTarget = targetName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment