From 566c8d4ba0ab327e4cefe72f0ddace84f4c01b41 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 23 May 2001 13:16:09 -0400 Subject: [PATCH] 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. --- Source/cmDSPMakefile.cxx | 5 +++++ Source/cmDSPWriter.cxx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx index 9af272eb1..7fa43f0c9 100644 --- a/Source/cmDSPMakefile.cxx +++ b/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) { diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx index 9af272eb1..7fa43f0c9 100644 --- a/Source/cmDSPWriter.cxx +++ b/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) {