summaryrefslogtreecommitdiffstats
path: root/Source/cmDSPWriter.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2001-05-23 17:16:09 (GMT)
committerBrad King <brad.king@kitware.com>2001-05-23 17:16:09 (GMT)
commit566c8d4ba0ab327e4cefe72f0ddace84f4c01b41 (patch)
treedb3a418eb1e089121619454be3ba97227e12201f /Source/cmDSPWriter.cxx
parent1f6057e8646193895d353289b0ebf6fde29e1069 (diff)
downloadCMake-566c8d4ba0ab327e4cefe72f0ddace84f4c01b41.zip
CMake-566c8d4ba0ab327e4cefe72f0ddace84f4c01b41.tar.gz
CMake-566c8d4ba0ab327e4cefe72f0ddace84f4c01b41.tar.bz2
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.
Diffstat (limited to 'Source/cmDSPWriter.cxx')
-rw-r--r--Source/cmDSPWriter.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmDSPWriter.cxx b/Source/cmDSPWriter.cxx
index 9af272e..7fa43f0 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)
{