diff options
author | Brad King <brad.king@kitware.com> | 2012-02-27 16:26:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-02-27 18:19:57 (GMT) |
commit | 573fa3bf136e5c780d3dd7e2dc692d52b3eba96d (patch) | |
tree | 532b26ed0e999b0c6a061d970abf37139a161588 /Source/cmTarget.cxx | |
parent | cffebe643c9002ee3411c8f293abdf7c23fc622c (diff) | |
download | CMake-573fa3bf136e5c780d3dd7e2dc692d52b3eba96d.zip CMake-573fa3bf136e5c780d3dd7e2dc692d52b3eba96d.tar.gz CMake-573fa3bf136e5c780d3dd7e2dc692d52b3eba96d.tar.bz2 |
Factor cmInstallType out of cmTarget::TargetType
The purpose of the TargetType enumeration was overloaded for install
type because install rules were once recorded as targets. Factor the
install types out into their own enumeration.
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index ae5596b..57f5a94 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -43,12 +43,6 @@ const char* cmTarget::GetTargetTypeName(TargetType targetType) return "UTILITY"; case cmTarget::GLOBAL_TARGET: return "GLOBAL_TARGET"; - case cmTarget::INSTALL_FILES: - return "INSTALL_FILES"; - case cmTarget::INSTALL_PROGRAMS: - return "INSTALL_PROGRAMS"; - case cmTarget::INSTALL_DIRECTORY: - return "INSTALL_DIRECTORY"; case cmTarget::UNKNOWN_LIBRARY: return "UNKNOWN_LIBRARY"; } @@ -1184,16 +1178,6 @@ void cmTarget::DefineProperties(cmake *cm) void cmTarget::SetType(TargetType type, const char* name) { this->Name = name; - if(type == cmTarget::INSTALL_FILES || - type == cmTarget::INSTALL_PROGRAMS || - type == cmTarget::INSTALL_DIRECTORY) - { - this->Makefile-> - IssueMessage(cmake::INTERNAL_ERROR, - "SetType called on cmTarget for INSTALL_FILES, " - "INSTALL_PROGRAMS, or INSTALL_DIRECTORY "); - return; - } // only add dependency information for library targets this->TargetTypeValue = type; if(this->TargetTypeValue >= STATIC_LIBRARY |