diff options
author | Brad King <brad.king@kitware.com> | 2001-05-23 17:16:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2001-05-23 17:16:09 (GMT) |
commit | 566c8d4ba0ab327e4cefe72f0ddace84f4c01b41 (patch) | |
tree | db3a418eb1e089121619454be3ba97227e12201f | |
parent | 1f6057e8646193895d353289b0ebf6fde29e1069 (diff) | |
download | CMake-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.
-rw-r--r-- | Source/cmDSPMakefile.cxx | 5 | ||||
-rw-r--r-- | Source/cmDSPWriter.cxx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmDSPMakefile.cxx b/Source/cmDSPMakefile.cxx index 9af272e..7fa43f0 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 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) { |