summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-07 22:23:34 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-14 22:41:40 (GMT)
commit4ee2b2670854b071c8b8ceafb2a4a00f72069ef9 (patch)
tree10a939e687c6bb7550b4bbad8ec346f695eb63dc
parenteac15298a80b814e9d5fd0077a8c5bbcbd05a8c6 (diff)
downloadCMake-4ee2b2670854b071c8b8ceafb2a4a00f72069ef9.zip
CMake-4ee2b2670854b071c8b8ceafb2a4a00f72069ef9.tar.gz
CMake-4ee2b2670854b071c8b8ceafb2a4a00f72069ef9.tar.bz2
cmGeneratorTarget: Use enum for GetType.
-rw-r--r--Source/cmGeneratorTarget.cxx2
-rw-r--r--Source/cmGeneratorTarget.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx
index dce2091..dc02734 100644
--- a/Source/cmGeneratorTarget.cxx
+++ b/Source/cmGeneratorTarget.cxx
@@ -323,7 +323,7 @@ cmLocalGenerator* cmGeneratorTarget::GetLocalGenerator() const
}
//----------------------------------------------------------------------------
-int cmGeneratorTarget::GetType() const
+cmState::TargetType cmGeneratorTarget::GetType() const
{
return this->Target->GetType();
}
diff --git a/Source/cmGeneratorTarget.h b/Source/cmGeneratorTarget.h
index 258c556..05a7d4d 100644
--- a/Source/cmGeneratorTarget.h
+++ b/Source/cmGeneratorTarget.h
@@ -41,7 +41,7 @@ public:
cmComputeLinkInformation*
GetLinkInformation(const std::string& config) const;
- int GetType() const;
+ cmState::TargetType GetType() const;
std::string GetName() const;
const char *GetProperty(const std::string& prop) const;
bool GetPropertyAsBool(const std::string& prop) const;