Browse Source

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.

Brad King 24 years ago
parent
commit
566c8d4ba0
2 changed files with 10 additions and 0 deletions
  1. 5 0
      Source/cmDSPMakefile.cxx
  2. 5 0
      Source/cmDSPWriter.cxx

+ 5 - 0
Source/cmDSPMakefile.cxx

@@ -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)
       {

+ 5 - 0
Source/cmDSPWriter.cxx

@@ -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)
       {