BUG: Fixed --build-target implementation to work with Visual Studio generators.
This commit is contained in:
parent
e708045e6e
commit
f6e8b36dcb
@ -1829,7 +1829,16 @@ int cmCTest::RunCMakeAndTest(std::string* outstring)
|
|||||||
#endif
|
#endif
|
||||||
makeCommand += " ";
|
makeCommand += " ";
|
||||||
makeCommand += m_BuildProject;
|
makeCommand += m_BuildProject;
|
||||||
makeCommand += ".dsw /MAKE \"ALL_BUILD - ";
|
makeCommand += ".dsw /MAKE \"";
|
||||||
|
if(m_BuildTarget.size())
|
||||||
|
{
|
||||||
|
makeCommand += m_BuildTarget;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
makeCommand += "ALL_BUILD";
|
||||||
|
}
|
||||||
|
makeCommand += " - ";
|
||||||
makeCommand += m_ConfigType;
|
makeCommand += m_ConfigType;
|
||||||
if(m_BuildNoClean)
|
if(m_BuildNoClean)
|
||||||
{
|
{
|
||||||
@ -1860,7 +1869,15 @@ int cmCTest::RunCMakeAndTest(std::string* outstring)
|
|||||||
{
|
{
|
||||||
makeCommand += "/rebuild ";
|
makeCommand += "/rebuild ";
|
||||||
}
|
}
|
||||||
makeCommand += m_ConfigType + " /project ALL_BUILD";
|
makeCommand += m_ConfigType + " /project ";
|
||||||
|
if(m_BuildTarget.size())
|
||||||
|
{
|
||||||
|
makeCommand += m_BuildTarget;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
makeCommand += "ALL_BUILD";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (lowerCaseCommand.find("make") != std::string::npos)
|
else if (lowerCaseCommand.find("make") != std::string::npos)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user