diff options
Diffstat (limited to 'Source/cmTarget.cxx')
-rw-r--r-- | Source/cmTarget.cxx | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index eeced8d..fecdc45 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -33,33 +33,6 @@ #define UNORDERED_SET std::set #endif -const char* cmTarget::GetTargetTypeName(cmState::TargetType targetType) -{ - switch( targetType ) - { - case cmState::STATIC_LIBRARY: - return "STATIC_LIBRARY"; - case cmState::MODULE_LIBRARY: - return "MODULE_LIBRARY"; - case cmState::SHARED_LIBRARY: - return "SHARED_LIBRARY"; - case cmState::OBJECT_LIBRARY: - return "OBJECT_LIBRARY"; - case cmState::EXECUTABLE: - return "EXECUTABLE"; - case cmState::UTILITY: - return "UTILITY"; - case cmState::GLOBAL_TARGET: - return "GLOBAL_TARGET"; - case cmState::INTERFACE_LIBRARY: - return "INTERFACE_LIBRARY"; - case cmState::UNKNOWN_LIBRARY: - return "UNKNOWN_LIBRARY"; - } - assert(0 && "Unexpected target type"); - return 0; -} - //---------------------------------------------------------------------------- class cmTargetInternals { @@ -1892,7 +1865,7 @@ const char *cmTarget::GetProperty(const std::string& prop, // the type property returns what type the target is else if (prop == propTYPE) { - return cmTarget::GetTargetTypeName(this->GetType()); + return cmState::GetTargetTypeName(this->GetType()); } else if(prop == propINCLUDE_DIRECTORIES) { |