mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
ctest: Fix --build-and-test without --build-target on Xcode
This commit is contained in:
committed by
Brad King
parent
cb6c233ecc
commit
3ca4402966
@@ -348,11 +348,13 @@ void cmGlobalXCodeGenerator::GenerateBuildCommand(
|
||||
makeCommand.add(
|
||||
this->SelectMakeProgram(makeProgram, this->GetXcodeBuildCommand()));
|
||||
|
||||
makeCommand.add("-project");
|
||||
std::string projectArg = projectName;
|
||||
projectArg += ".xcode";
|
||||
projectArg += "proj";
|
||||
makeCommand.add(projectArg);
|
||||
if (!projectName.empty()) {
|
||||
makeCommand.add("-project");
|
||||
std::string projectArg = projectName;
|
||||
projectArg += ".xcode";
|
||||
projectArg += "proj";
|
||||
makeCommand.add(projectArg);
|
||||
}
|
||||
|
||||
bool clean = false;
|
||||
std::string realTarget = targetName;
|
||||
|
||||
Reference in New Issue
Block a user