summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2015-10-06 22:37:31 (GMT)
committerStephen Kelly <steveire@gmail.com>2015-10-08 21:25:11 (GMT)
commit27916f2cd10904deda1a44bf221fbdef7ba1af66 (patch)
treea1ecee0b5e9e5a0eb58b3b91fa9f85292385d860
parent29a2d9fe69a8561ff72f800b5f96bc896cd9d449 (diff)
downloadCMake-27916f2cd10904deda1a44bf221fbdef7ba1af66.zip
CMake-27916f2cd10904deda1a44bf221fbdef7ba1af66.tar.gz
CMake-27916f2cd10904deda1a44bf221fbdef7ba1af66.tar.bz2
cmLocalGenerator: Add cmake instance accessor.
-rw-r--r--Source/cmLocalGenerator.cxx5
-rw-r--r--Source/cmLocalGenerator.h2
2 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index b26151c..6647894 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -2858,6 +2858,11 @@ cmLocalGenerator
return source.GetLanguage();
}
+cmake* cmLocalGenerator::GetCMakeInstance() const
+{
+ return this->GlobalGenerator->GetCMakeInstance();
+}
+
//----------------------------------------------------------------------------
std::string
cmLocalGenerator::GetTargetDirectory(cmTarget const&) const
diff --git a/Source/cmLocalGenerator.h b/Source/cmLocalGenerator.h
index 33fede1..d9623cb 100644
--- a/Source/cmLocalGenerator.h
+++ b/Source/cmLocalGenerator.h
@@ -251,6 +251,8 @@ public:
*/
bool NeedBackwardsCompatibility_2_4();
+ cmake* GetCMakeInstance() const;
+
/**
* Generate a Mac OS X application bundle Info.plist file.
*/