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(
makeCommand.add(
this->SelectMakeProgram(makeProgram, this->GetXcodeBuildCommand()));
if (!projectName.empty()) {
makeCommand.add("-project");
std::string projectArg = projectName;
projectArg += ".xcode";
projectArg += "proj";
makeCommand.add(projectArg);
}
bool clean = false;
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