ENH: Added INSTALL target to switch in OutputDSPFile. Also added a default that prints out an error message so that anyone who adds a target doesn't forget to update the switch.

This commit is contained in:
Brad King 2001-05-23 13:16:09 -04:00
parent 1f6057e864
commit 566c8d4ba0
2 changed files with 10 additions and 0 deletions

View File

@ -106,6 +106,11 @@ void cmDSPMakefile::OutputDSPFile()
case cmTarget::UTILITY:
this->SetBuildType(UTILITY, l->first.c_str());
break;
case cmTarget::INSTALL:
break;
default:
cmSystemTools::Error("Bad target type", l->first.c_str());
break;
}
if (l->second.GetType() != cmTarget::INSTALL)
{

View File

@ -106,6 +106,11 @@ void cmDSPMakefile::OutputDSPFile()
case cmTarget::UTILITY:
this->SetBuildType(UTILITY, l->first.c_str());
break;
case cmTarget::INSTALL:
break;
default:
cmSystemTools::Error("Bad target type", l->first.c_str());
break;
}
if (l->second.GetType() != cmTarget::INSTALL)
{